Skip to content

Consistent return values #43

@alexdunae

Description

@alexdunae

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions