lib/tram/policy/validator.rb in tram-policy-0.2.2 vs lib/tram/policy/validator.rb in tram-policy-0.2.3
- old
+ new
@@ -8,11 +8,9 @@
end
def check(object)
object.__send__ :instance_variable_set, :@__scope__, scope
name ? object.__send__(name) : object.instance_exec(&block)
- rescue
- object.__send__ :instance_variable_set, :@__scope__, nil
end
private
def initialize(scope, name, block, stop_on_failure: false)