From d039a611778eebb8f5ee572a45b1ccabc1c9b768 Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Tue, 7 Jan 2020 18:04:13 -0500 Subject: [PATCH] Remove SiteConfig From Org Validation (#5393) [deploy] * Make default_site_email readonly so Rails can load first * Change Org validation message and remove readonly so configs can be updated * Change Org validation message and remove readonly so configs can be updated TRY 2 --- app/models/organization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/organization.rb b/app/models/organization.rb index 2432cf14c..cac1f9ccc 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -33,7 +33,7 @@ class Organization < ApplicationRecord format: { with: /\A[a-zA-Z0-9\-_]+\Z/ }, length: { in: 2..18 }, exclusion: { in: ReservedWords.all, - message: "%s is a reserved word. Contact #{SiteConfig.default_site_email} for help registering your organization." } + message: "%s is a reserved word. Contact site admins for help registering your organization." } validates :url, url: { allow_blank: true, no_local: true, schemes: %w[https http] } validates :secret, uniqueness: { allow_blank: true } validates :location, :email, :company_size, length: { maximum: 64 }