diff options
Diffstat (limited to 'app/models/member_role.rb')
-rw-r--r-- | app/models/member_role.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/member_role.rb b/app/models/member_role.rb index 74d4c631f..038509026 100644 --- a/app/models/member_role.rb +++ b/app/models/member_role.rb @@ -26,6 +26,7 @@ class MemberRole < ActiveRecord::Base validates_presence_of :role validate :validate_role_member + attr_protected :id def validate_role_member errors.add :role_id, :invalid if role && !role.member? |