Skip to content

Handle RangeError in Rails 4.2 for allow_value / validate_numericality_of #637

Closed
@mcmire

Description

For validate_numericality_of if you use one less than the allowable max value of the column then you'll get an exception and not a failure. Related, if you use allow_value with a value that's outside the allowable max value of the column you'll get an exception and not a failure.

(Related to #634)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions