app/models/mtwarden/account.rb in mtwarden-4.1.2 vs app/models/mtwarden/account.rb in mtwarden-5.0.0b

- old
+ new

@@ -11,15 +11,15 @@ has_many :members, :class_name => "Mtwarden::Member" has_many :users, :through => :members EXCLUDED_SUBDOMAINS = %w(admin) - validates_exclusion_of :subdomain, :in => EXCLUDED_SUBDOMAINS, + validates_exclusion_of :subdomain, :in => EXCLUDED_SUBDOMAINS, :message => "is not allowed. Please choose another subdomain." validates_format_of :subdomain, :with => /\A[\w\-]+\Z/i, - :message => "is not allowed. Please choose another subdomain." + :message => "is not allowed. Please choose another subdomain." before_validation do self.subdomain = subdomain.to_s.downcase end @@ -34,6 +34,6 @@ def owner?(user) owner == user end end -end \ No newline at end of file +end