Skip to content

Commit

Permalink
Ruby 1.9 compat: don't use obsolete ParseDate
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Jan 3, 2008
1 parent f7f0e7b commit 7b8ee24
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -192,7 +192,7 @@ def fast_string_to_time(string)
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)
Expand Down

0 comments on commit 7b8ee24

Please sign in to comment.