提交 50f17432 编写于 作者: J José Valim

Merge pull request #4236 from castlerock/to_time_available_in_ruby19_DateTime

remove condition since to_time always available in ruby19 DateTime
......@@ -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.
先完成此消息的编辑!
想要评论请 注册