Method: ActionPolicy::Policy::Scoping::ClassMethods#scope_matchers

Defined in:
lib/action_policy/policy/scoping.rb

#scope_matchersObject



151
152
153
154
155
156
157
158
159
# File 'lib/action_policy/policy/scoping.rb', line 151

def scope_matchers
  return @scope_matchers if instance_variable_defined?(:@scope_matchers)

  @scope_matchers = if superclass.respond_to?(:scope_matchers)
    superclass.scope_matchers.dup
  else
    []
  end
end