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
This commit is contained in:
Jean-Baptiste Barth 2010-08-09 05:10:00 +00:00
parent 56e3953a71
commit e00884bcca
1 changed files with 1 additions and 1 deletions

View File

@ -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