Exception: Authz::Controllers::AuthorizationManager::MissingScopingInstance
- Inherits:
-
StandardError
- Object
- StandardError
- Authz::Controllers::AuthorizationManager::MissingScopingInstance
- Defined in:
- lib/authz/controllers/authorization_manager.rb
Overview
Error that will be raised if the authorized method is not provided a scoping instance and the skip_scoping option is not used
Instance Attribute Summary collapse
- #action ⇒ Object readonly
- #controller ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ MissingScopingInstance
constructor
A new instance of MissingScopingInstance.
Constructor Details
#initialize(options = {}) ⇒ MissingScopingInstance
Returns a new instance of MissingScopingInstance.
30 31 32 33 34 35 36 |
# File 'lib/authz/controllers/authorization_manager.rb', line 30 def initialize( = {}) @controller = .fetch :controller @action = .fetch :action msg = "#{controller}##{action}. Provide an instance to " \ 'perform authorization or use the skip_scoping option' super(msg) end |
Instance Attribute Details
#action ⇒ Object (readonly)
29 30 31 |
# File 'lib/authz/controllers/authorization_manager.rb', line 29 def action @action end |
#controller ⇒ Object (readonly)
29 30 31 |
# File 'lib/authz/controllers/authorization_manager.rb', line 29 def controller @controller end |