Exception: ActionPolicy::UnscopedAction

Inherits:
Error
  • Object
show all
Defined in:
lib/action_policy/rails/controller.rb

Overview

Raised when authorized_scope hasn't been called for action

Instance Method Summary collapse

Constructor Details

#initialize(controller, action) ⇒ UnscopedAction

Returns a new instance of UnscopedAction.



16
17
18
# File 'lib/action_policy/rails/controller.rb', line 16

def initialize(controller, action)
  super("Action '#{controller}##{action}' hasn't been scoped")
end