lib/ostiary/policy_exempted.rb in ostiary-0.9.0 vs lib/ostiary/policy_exempted.rb in ostiary-0.10.0

- old
+ new

@@ -1,14 +1,14 @@ module Ostiary class PolicyExempted < Policy def inspect - "#{name} except for #{rules.to_sentence}" + "#{name} except for #{actions.to_sentence}" end def met?(action) - return true if rules.include?(action) - yield + return true if actions.include?(action) + super end def error_message(action) "#{action} not exempted for #{name}" end