Module: PunditExtraExtra::ResourceAutoload::ClassMethods
- Defined in:
- lib/pundit_extraextra/resource_autoload.rb
Instance Method Summary collapse
- #authorize_resource(resource_name_or_options = {}, options = {}) ⇒ Object
- #load_and_authorize_resource(resource_name_or_options = {}, options = {}) ⇒ Object
- #load_resource(resource_name_or_options = {}, options = {}) ⇒ Object
- #skip_authorization(options = {}) ⇒ Object
Instance Method Details
#authorize_resource(resource_name_or_options = {}, options = {}) ⇒ Object
18 19 20 |
# File 'lib/pundit_extraextra/resource_autoload.rb', line 18 def ( = {}, = {}) (:authorize, , ) end |
#load_and_authorize_resource(resource_name_or_options = {}, options = {}) ⇒ Object
26 27 28 |
# File 'lib/pundit_extraextra/resource_autoload.rb', line 26 def ( = {}, = {}) (:load_and_authorize, , ) end |
#load_resource(resource_name_or_options = {}, options = {}) ⇒ Object
14 15 16 |
# File 'lib/pundit_extraextra/resource_autoload.rb', line 14 def load_resource( = {}, = {}) (:load, , ) end |
#skip_authorization(options = {}) ⇒ Object
22 23 24 |
# File 'lib/pundit_extraextra/resource_autoload.rb', line 22 def ( = {}) before_action :skip_authorization_and_scope, .dup end |