This has bothered by for a long time: https://github.com/validates-email-format-of/validates_email_format_of/blob/master/lib/validates_email_format_of.rb#L68
The method either returns nil (for success!) or an array with a single element, the message. It was a design mistake long ago that would be wonderful to fix one day. I'm not sure how without breaking compatibility. Maybe a 2.0 down the road. It should either always return a bool, or always return an array.
Anyway, one day...
This has bothered by for a long time: https://github.com/validates-email-format-of/validates_email_format_of/blob/master/lib/validates_email_format_of.rb#L68
The method either returns
nil(for success!) or an array with a single element, the message. It was a design mistake long ago that would be wonderful to fix one day. I'm not sure how without breaking compatibility. Maybe a 2.0 down the road. It should either always return a bool, or always return an array.Anyway, one day...