Module: PunditExtra::ResourceAutoload::ClassMethods
- Defined in:
- lib/pundit_extra/resource_autoload.rb
Instance Method Summary collapse
- #authorize_resource(options = {}) ⇒ Object
- #load_and_authorize_resource(options = {}) ⇒ Object
- #load_resource(options = {}) ⇒ Object
- #skip_authorization(options = {}) ⇒ Object
Instance Method Details
#authorize_resource(options = {}) ⇒ Object
12 13 14 |
# File 'lib/pundit_extra/resource_autoload.rb', line 12 def (={}) before_filter :authorize_resource, .dup end |
#load_and_authorize_resource(options = {}) ⇒ Object
20 21 22 23 |
# File 'lib/pundit_extra/resource_autoload.rb', line 20 def (={}) load_resource end |
#load_resource(options = {}) ⇒ Object
8 9 10 |
# File 'lib/pundit_extra/resource_autoload.rb', line 8 def load_resource(={}) before_filter :load_resource, .dup end |
#skip_authorization(options = {}) ⇒ Object
16 17 18 |
# File 'lib/pundit_extra/resource_autoload.rb', line 16 def (={}) before_filter :skip_authorization_and_scope, .dup end |