summaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-07 12:25:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-07 12:25:20 +0000
commitd986a35a9b85ff8265e6f10b3e42f40280d10e03 (patch)
tree6a1b853e68ac6ea522bea9c6f33261e61671428d /app/models/user.rb
parent7183530e7a10ceb2111b3fa850a0a54e5182fe1e (diff)
downloadredmine-d986a35a9b85ff8265e6f10b3e42f40280d10e03.tar.gz
redmine-d986a35a9b85ff8265e6f10b3e42f40280d10e03.zip
Rails3: model: replace deprecated errors.add_to_base at validate_on_create of User
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7608 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index b3622024e..0ac0dcb74 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -597,7 +597,7 @@ class AnonymousUser < User
def validate_on_create
# There should be only one AnonymousUser in the database
- errors.add_to_base 'An anonymous user already exists.' if AnonymousUser.find(:first)
+ errors.add :base, 'An anonymous user already exists.' if AnonymousUser.find(:first)
end
def available_custom_fields