Skip to content

Commit

Permalink
remove condition since to_time always available in ruby19 DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishnu Atrai committed Dec 30, 2011
1 parent 5681f79 commit 7249f94
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -6,7 +6,7 @@
class DateTime class DateTime
# Ruby 1.9 has DateTime#to_time which internally relies on Time. We define our own #to_time which allows # 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. # 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. # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats.
# #
Expand Down

0 comments on commit 7249f94

Please sign in to comment.