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

raise an appropriate ArgumentError when the date couldn't be parsed #3097

Closed
wants to merge 1 commit into from
Closed

raise an appropriate ArgumentError when the date couldn't be parsed #3097

wants to merge 1 commit into from

Conversation

dmathieu
Copy link
Contributor

Closes #3088

The error on 1.9.2 is raised here.
https://github.com/ruby/ruby/blob/ruby_1_9_2/lib/date.rb#L615

I'm going to send a pull request to fix this in ruby, but this pr has the goal to bring the fix to older versions or ruby too.

@dmathieu dmathieu closed this Oct 6, 2011
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.

to_date in activesupport does not handle invalid dates
1 participant