Module: Aclize::ClassMethods
- Defined in:
- lib/aclize.rb
Overview
The ClassMethods module will implement the methods that we want to be accessible as class methods. This will permit to setup callbacks to execute on unauthorized access.
Instance Method Summary collapse
Instance Method Details
#aclized? ⇒ Boolean
18 19 20 |
# File 'lib/aclize.rb', line 18 def aclized? true end |
#if_unauthorized(&block) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/aclize.rb', line 22 def (&block) if block_given? before_filter do register_callback(&block) end end end |