lib/cantango/permits/role_group_permit.rb in cantango-0.8.8.1 vs lib/cantango/permits/role_group_permit.rb in cantango-0.8.9
- old
+ new
@@ -14,12 +14,13 @@
def self.role_group_name clazz
clazz.name.demodulize.gsub(/(.*)(RoleGroupPermit)/, '\1').underscore.to_sym
end
- def role_group
+ def permit_name
self.class.role_group_name self.class
end
+ alias_method :role_group, :permit_name
# creates the permit
def initialize ability
super
end