lib/dry/schema/messages/template.rb in dry-schema-1.4.1 vs lib/dry/schema/messages/template.rb in dry-schema-1.4.2
- old
+ new
@@ -57,10 +57,10 @@
tokens.each_with_object({}) { |k, h| h[k] = input[k] }
end
# @api private
def call(data = EMPTY_HASH)
- data.empty? ? evaluator.() : evaluator.(data)
+ data.empty? ? evaluator.() : evaluator.(**data)
end
alias_method :[], :call
end
end
end