module PactBroker::Repositories::Scopes
Public Instance Methods
scope_for(scope)
click to toggle 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
unscoped(scope)
click to toggle source
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
# File lib/pact_broker/repositories/scopes.rb, line 21 def unscoped(scope) scope end
with_no_scope() { |self| ... }
click to toggle source
# File lib/pact_broker/repositories/scopes.rb, line 4 def with_no_scope @unscoped = true yield self ensure @unscoped = false end