Module: Canable::Cans::ClassMethods
- Defined in:
- lib/canable/cans.rb
Overview
RBAC Can/Actor building DSL
Instance Attribute Summary collapse
-
#canable_callbacks ⇒ Object
Returns the value of attribute canable_callbacks.
Instance Method Summary collapse
Instance Attribute Details
#canable_callbacks ⇒ Object
Returns the value of attribute canable_callbacks.
19 20 21 |
# File 'lib/canable/cans.rb', line 19 def canable_callbacks @canable_callbacks end |
Instance Method Details
#after_permissions_query(symbol) ⇒ Object
25 26 27 28 29 |
# File 'lib/canable/cans.rb', line 25 def (symbol) c = self.canable_callbacks c[:after_query] = symbol self.canable_callbacks = c end |
#before_permissions_query(symbol) ⇒ Object
31 32 33 34 35 |
# File 'lib/canable/cans.rb', line 31 def (symbol) c = self.canable_callbacks c[:before_query] = symbol self.canable_callbacks = c end |