From 4bec1da79b337c26fac188c6fa10aec4f553b612 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Tue, 2 Jul 2013 09:18:08 +0530 Subject: Remove deprecated `Date#to_time_in_current_zone` --- activesupport/lib/active_support/core_ext/date/zones.rb | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/date/zones.rb') diff --git a/activesupport/lib/active_support/core_ext/date/zones.rb b/activesupport/lib/active_support/core_ext/date/zones.rb index b4548671bf..538ed00406 100644 --- a/activesupport/lib/active_support/core_ext/date/zones.rb +++ b/activesupport/lib/active_support/core_ext/date/zones.rb @@ -2,21 +2,6 @@ require 'date' require 'active_support/core_ext/time/zones' class Date - # *DEPRECATED*: Use +Date#in_time_zone+ instead. - # - # Converts Date to a TimeWithZone in the current zone if Time.zone or - # Time.zone_default is set, otherwise converts Date to a Time via - # Date#to_time. - def to_time_in_current_zone - ActiveSupport::Deprecation.warn 'Date#to_time_in_current_zone is deprecated. Use Date#in_time_zone instead', caller - - if ::Time.zone - ::Time.zone.local(year, month, day) - else - to_time - end - end - # Converts Date to a TimeWithZone in the current zone if Time.zone or Time.zone_default # is set, otherwise converts Date to a Time via Date#to_time # -- cgit v1.2.3