Sha256: 1fbf98abe1e2b91fdcfad16a96322dcc41d11578fc028053ea4cebdb9e58a249
Contents?: true
Size: 532 Bytes
Versions: 46
Compression:
Stored size: 532 Bytes
Contents
module PactBroker module Repositories module Scopes def with_no_scope @unscoped = true yield self ensure @unscoped = false end def scope_for(scope) if @unscoped == true scope else PactBroker.policy_scope!(scope) end 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 def unscoped(scope) scope end end end end
Version data entries
46 entries across 46 versions & 1 rubygems