valid_email
valid_email copied to clipboard
v0.1.4 broke custom messages
Currently producing validation messages like "Customer Email {:message=>"is invalid"}".
Specifically, in EmailValidator
record.errors.add attribute, message: (msg % {value: value})
should revert to
record.errors.add attribute, (msg % {value: value})
Yes. Previously I was getting the errors in the same as rails format record.errors[:email] # => ['is invalid']
, but now it's record.errors[:email] # => [{:message=>' is invalid'}]
It looks like this behavior was changed in https://github.com/hallelujah/valid_email/pull/118
@hallelujah Shall we close this issue after https://github.com/hallelujah/valid_email/pull/125 was merged?