Module: Authorization::Controller::Grape::ClassMethods
- Defined in:
- lib/declarative_authorization/controller/grape.rb
Instance Method Summary collapse
Instance Method Details
#add_filter! ⇒ Object
82 83 84 85 86 |
# File 'lib/declarative_authorization/controller/grape.rb', line 82 def add_filter! before do send(:filter_access_filter) end end |
#controller_name ⇒ Object
78 79 80 |
# File 'lib/declarative_authorization/controller/grape.rb', line 78 def controller_name name.demodulize.underscore end |
#reset_filter! ⇒ Object
88 89 90 |
# File 'lib/declarative_authorization/controller/grape.rb', line 88 def reset_filter! # Not required with Grape end |