Replaces find(:first) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10928 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
+1
-1
@@ -686,7 +686,7 @@ class AnonymousUser < User
|
||||
|
||||
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)
|
||||
errors.add :base, 'An anonymous user already exists.' if AnonymousUser.exists?
|
||||
end
|
||||
|
||||
def available_custom_fields
|
||||
|
||||
Reference in New Issue
Block a user