Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinity should be a valid validates_length_of maximum #4905

Merged
merged 1 commit into from
Feb 6, 2012

Conversation

niels
Copy link
Contributor

@niels niels commented Feb 6, 2012

Allow infinite values for validates_length_of. Particularly useful
for prettily defining an open ended range such as

validates_length_of :human_stupidity, :within => 0..Float::INFINITY

Allow infinite values for validates_length_of. Particularly useful
for prettily defining an open ended range such as

validates_length_of :human_stupidity, :within => 0..Float::INFINITY
tenderlove added a commit that referenced this pull request Feb 6, 2012
Infinity should be a valid validates_length_of maximum
@tenderlove tenderlove merged commit 393f797 into rails:master Feb 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants