1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ruby 1.9 compat: don't use obsolete ParseDate

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2008-01-03 02:59:03 +00:00
parent f7f0e7b833
commit 7b8ee2438f

View file

@ -192,7 +192,7 @@ module ActiveRecord
end
def fallback_string_to_date(string)
new_date(*ParseDate.parsedate(string)[0..2])
new_date(*::Date._parse(string, false).values_at(:year, :mon, :mday))
end
def fallback_string_to_time(string)