class Authz::Scopables::Base::NoAssociationFound
Error that will be raised if the model being scoped doesn't appear to have an association to the scoping class. @api public
Attributes
scopable[R]
scoped_class[R]
scoping_class[R]
Public Class Methods
new(options = {})
click to toggle source
Calls superclass method
# File lib/authz/scopables/base.rb, line 95 def initialize(options = {}) @scoped_class = options.fetch(:scoped_class) @scopable = options.fetch :scopable scoping_class = options.fetch :scoping_class message = "#{scoped_class} is not associated with " \ "#{scoping_class} for #{scopable}. " super(message) end