module PactBroker::Repositories::Scopes
Public Instance Methods
Source
# File lib/pact_broker/repositories/scopes.rb, line 11 def scope_for(scope) if @unscoped == true scope else PactBroker.policy_scope!(scope) end end
Source
# File lib/pact_broker/repositories/scopes.rb, line 21 def unscoped(scope) scope end
For the times when it doesn’t make sense to use the scoped class, this is a way to indicate that it is an intentional use
Source
# File lib/pact_broker/repositories/scopes.rb, line 4 def with_no_scope @unscoped = true yield self ensure @unscoped = false end