lib/cantango/permits/role_group_permit.rb in cantango-0.9.4.1 vs lib/cantango/permits/role_group_permit.rb in cantango-0.9.4.2
- old
+ new
@@ -48,16 +48,17 @@
def valid_for? subject
in_role_group? subject
end
- def hash_key
- send role_groups_list_meth
+ def self.hash_key
+ role_groups_list_meth
end
protected
include CanTango::Helpers::RoleMethods
+ extend CanTango::Helpers::RoleMethods
def in_role_group? subject
has_role_group?(subject) || role_groups_of(subject).include?(role)
end