diff options
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 b4617c229..0f644dbe7 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -24,7 +24,7 @@ class Member < ActiveRecord::Base validates_uniqueness_of :user_id, :scope => :project_id def validate - errors.add :role_id, :activerecord_error_invalid if role && !role.member? + errors.add :role_id, :invalid if role && !role.member? end def name |