aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date/conversions.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2012-12-11 13:57:05 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2012-12-11 13:57:05 +0000
commit48583f8bf74d1cefefea3cd6591bd546a9eaff6c (patch)
tree50ebc308bc70cddb151cf7ebdc375eaaae812fd1 /activesupport/lib/active_support/core_ext/date/conversions.rb
parent45a6f546b6047befdef9d4acb8fa6c18cc0dab09 (diff)
downloadrails-48583f8bf74d1cefefea3cd6591bd546a9eaff6c.tar.gz
rails-48583f8bf74d1cefefea3cd6591bd546a9eaff6c.tar.bz2
rails-48583f8bf74d1cefefea3cd6591bd546a9eaff6c.zip
Deprecate obsolete Time to DateTime fallback methods
The Time.time_with_datetime_fallback, Time.utc_time and Time.local_time methods were added to handle the limitations of Ruby's native Time implementation. Those limitations no longer apply so we are deprecating them in 4.0 and they will be removed in 4.1.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/date/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb
index d49d427d80..fe08ade7e0 100644
--- a/activesupport/lib/active_support/core_ext/date/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date/conversions.rb
@@ -75,7 +75,7 @@ class Date
#
# date.to_time(:utc) # => Sat Nov 10 00:00:00 UTC 2007
def to_time(form = :local)
- ::Time.send("#{form}_time", year, month, day)
+ ::Time.send(form, year, month, day)
end
def xmlschema