diff options
| author | Siim Liiser <siim@wisemedia.ee> | 2016-01-13 11:19:23 +0200 |
|---|---|---|
| committer | Andrew White <andrew.white@unboxedconsulting.com> | 2016-04-04 00:00:31 +0100 |
| commit | 9c2c677d903bcdea3feb1cad6c6d4c8c07cc8034 (patch) | |
| tree | 6a91583bda2febe69db837af6eac54679b8ab22f /activemodel/lib/active_model | |
| parent | 08073125a5bd4cae0f2e02723e7743a389d496cd (diff) | |
| download | rails-9c2c677d903bcdea3feb1cad6c6d4c8c07cc8034.tar.gz rails-9c2c677d903bcdea3feb1cad6c6d4c8c07cc8034.tar.bz2 rails-9c2c677d903bcdea3feb1cad6c6d4c8c07cc8034.zip | |
Match `String#to_time`'s behaviour to ruby
Previously `String#to_time` returned the midnight of the current date
in some cases where there was no relavant information in the string.
Now the method returns `nil` instead in those cases.
Fixes #22958.
Diffstat (limited to 'activemodel/lib/active_model')
0 files changed, 0 insertions, 0 deletions
