lib/tram/policy/errors.rb in tram-policy-2.0.0 vs lib/tram/policy/errors.rb in tram-policy-2.0.1

- old
+ new

@@ -22,10 +22,10 @@ # def add(message, **tags) raise ArgumentError.new("Error message should be defined") unless message tap do - tags = tags.merge(scope: scope) if message.is_a?(Symbol) + tags = { scope: scope }.merge(tags) if message.is_a?(Symbol) @set << Tram::Policy::Error.new(message, **tags) end end # Iterates by collected errors