diff options
author | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2010-08-09 05:10:00 +0000 |
---|---|---|
committer | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2010-08-09 05:10:00 +0000 |
commit | e00884bcca90eabf8de5f8371f0ba8773942a4b8 (patch) | |
tree | 0c03a6673b6dfd1c14ef9fcdb8fe3fd7fae56d5c /app/models/member.rb | |
parent | 56e3953a71801befd26d78585ddd0cce4363e121 (diff) | |
download | redmine-e00884bcca90eabf8de5f8371f0ba8773942a4b8.tar.gz redmine-e00884bcca90eabf8de5f8371f0ba8773942a4b8.zip |
Removed hard-coded english error message on failed Member creation
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3929 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 94751efb2..d840cfc3e 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -82,7 +82,7 @@ class Member < ActiveRecord::Base protected def validate - errors.add_to_base "Role can't be blank" if member_roles.empty? && roles.empty? + errors.add_on_empty :role if member_roles.empty? && roles.empty? end private |