remove trailing white-spaces from app/models/user.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8296 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3ce595b806
commit
16e8818d9e
|
@ -622,7 +622,7 @@ end
|
|||
|
||||
class AnonymousUser < User
|
||||
validate :validate_anonymous_uniqueness, :on => :create
|
||||
|
||||
|
||||
def validate_anonymous_uniqueness
|
||||
# There should be only one AnonymousUser in the database
|
||||
errors.add :base, 'An anonymous user already exists.' if AnonymousUser.find(:first)
|
||||
|
|
Loading…
Reference in New Issue