提交 7249f94e 编写于 作者: V Vishnu Atrai

remove condition since to_time always available in ruby19 DateTime

上级 5681f79f
......@@ -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.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册