Sha256: 76b628883c00ba48151f609e24a8d2fad1eb7c671e04e07467729c5daf77be05
Contents?: true
Size: 311 Bytes
Versions: 2
Compression:
Stored size: 311 Bytes
Contents
module Ostiary class PolicyExempted < Policy def inspect "#{name} except for #{actions.to_sentence}" end def met?(action, &block) return true if actions.include?(action) super end def error_message(action) "#{action} not exempted for #{name}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ostiary-0.16.0 | lib/ostiary/policy_exempted.rb |
ostiary-0.15.0 | lib/ostiary/policy_exempted.rb |