Edited activesupport/lib/active_support/core_ext/time/calculations.rb via GitHub

This commit is contained in:
Jeremy Evans
2011-09-01 11:49:49 -07:00
parent 90248d2953
commit 1ebf84ac2e

View File

@@ -9,7 +9,7 @@ class Time
class << self
# Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances
def ===(other)
other.is_a?(::Time)
super || (self == Time && other.is_a?(ActiveSupport::TimeWithZone))
end
# Return the number of days in the given month.