summaryrefslogtreecommitdiff
path: root/app/models/group_membership.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/group_membership.rb')
-rw-r--r--app/models/group_membership.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/models/group_membership.rb b/app/models/group_membership.rb
index 0f04ae1..d9d48e7 100644
--- a/app/models/group_membership.rb
+++ b/app/models/group_membership.rb
@@ -12,8 +12,6 @@ class GroupMembership < ActiveRecord::Base
:presence => true,
:uniqueness => { :scope => [:group_id, :item_id] }
- validate :validate_item_type_consitency
-
validates :item,
:presence => true
@@ -27,11 +25,4 @@ class GroupMembership < ActiveRecord::Base
return fist_item.class.name
end
end
-
- def validate_item_type_consitency
- type_allowed = self.item_type_allowed
- if type_allowed && type_allowed != self.item_type
- errors.add(:item_type, "must be of type: #{type_allowed}")
- end
- end
end