class Authz::Scopables::Base::NoApplicableScopables

Raised when the scoping system is used on an instance of a class that has no applicable scopables @api public

Attributes

scoped_class[R]

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File lib/authz/scopables/base.rb, line 131
def initialize(options = {})
  @scoped_class  = options.fetch(:scoped_class)
  message = "#{scoped_class} has no applicable scopables. " \
             'Make sure you include the scopables modules ' \
             'inside the class definition.'
  super(message)
end