lib/tram/policy/dsl.rb in tram-policy-2.1.0 vs lib/tram/policy/dsl.rb in tram-policy-2.2.0
- old
+ new
@@ -7,10 +7,10 @@
# @param [#to_sym, nil] name (nil)
# @option opts [Boolean] :stop_on_failure
# @return [self]
#
def validate(name = nil, **opts, &block)
- local_validators << Validator.new(name, block, opts)
+ local_validators << Validator.new(name, block, **opts)
self
end
# Policy constructor/validator (alias for [.new])
#