Permalink
Browse files

remove condition since to_time always available in ruby19 DateTime

  • Loading branch information...
vishnuatrai committed Dec 30, 2011
1 parent 5681f79 commit 7249f94e6c432dae011efa6fd0f11a0fcf377a52
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/date_time/conversions.rb
@@ -6,7 +6,7 @@
class DateTime
# Ruby 1.9 has DateTime#to_time which internally relies on Time. We define our own #to_time which allows
# DateTimes outside the range of what can be created with Time.
- remove_method :to_time if instance_methods.include?(:to_time)
+ remove_method :to_time
# Convert to a formatted string. See Time::DATE_FORMATS for predefined formats.
#

0 comments on commit 7249f94

Please sign in to comment.