diff options
author | yui-knk <spiketeika@gmail.com> | 2016-04-15 00:54:57 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2016-04-17 08:23:20 +0900 |
commit | 29e876f775a5bae0a8bf60c9ec75d89681717a9c (patch) | |
tree | 2ff3c148009e24385332c80eb0ec8f287e8a6232 /actionview/test/fixtures/db_definitions | |
parent | 91798c75bc56fa706c9ed4a8dab6020462463a10 (diff) | |
download | rails-29e876f775a5bae0a8bf60c9ec75d89681717a9c.tar.gz rails-29e876f775a5bae0a8bf60c9ec75d89681717a9c.tar.bz2 rails-29e876f775a5bae0a8bf60c9ec75d89681717a9c.zip |
Raise `ArgumentError` when an invalid form is passed to `Date#to_time`
Before this commit
`NoMethodError: undefined method `form_name' for Time:Class` is raised
when an invalid argument is passed.
It is better to raise `ArgumentError` and show list of valid arguments
to developers.
Diffstat (limited to 'actionview/test/fixtures/db_definitions')
0 files changed, 0 insertions, 0 deletions