Exception: Spree::Api::V3::ScopedAuthorization::MissingScopedResource

Inherits:
StandardError
  • Object
show all
Defined in:
app/controllers/concerns/spree/api/v3/scoped_authorization.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller_class) ⇒ MissingScopedResource

Returns a new instance of MissingScopedResource.



24
25
26
27
# File 'app/controllers/concerns/spree/api/v3/scoped_authorization.rb', line 24

def initialize(controller_class)
  super("#{controller_class} must declare `scoped_resource :name` " \
        '(or `skip_scope_check!` for endpoints exempt from scope checks).')
end