Module: RoleAuthorization::Rules::ClassMethods
- Included in:
- RoleAuthorization::Rules
- Defined in:
- lib/role_authorization/rules.rb
Instance Method Summary collapse
Instance Method Details
#define(rule_name, &block) ⇒ Object
4 5 6 7 8 |
# File 'lib/role_authorization/rules.rb', line 4 def define(rule_name, &block) RoleAuthorization::Mapper.send(:define_method, rule_name) do |*args| add_to_rules(rule_name, *args, &block) end end |