diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-08 13:37:27 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-08 13:37:27 +0000 |
commit | 15bb2fefa40c536762ac01decef76633ba185ccb (patch) | |
tree | dfaf673131e7294eb94457db7114569079d56544 /app/models/member.rb | |
parent | d9699adce500d34ba7bd07959485e14de6031f92 (diff) | |
download | redmine-15bb2fefa40c536762ac01decef76633ba185ccb.tar.gz redmine-15bb2fefa40c536762ac01decef76633ba185ccb.zip |
back out r8124
r8124 shows ":roles can't be empty".
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8125 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 15f2b6c9a..f54981867 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -84,7 +84,7 @@ class Member < ActiveRecord::Base protected def validate_role - errors.add_on_empty :roles if member_roles.empty? && roles.empty? + errors.add_on_empty :role if member_roles.empty? && roles.empty? end private |