Permalink
Browse files

Edited activesupport/lib/active_support/core_ext/time/calculations.rb…

… via GitHub
  • Loading branch information...
1 parent 90248d2 commit 1ebf84ac2ead038b99e1c982c24f73ffedf07c87 @jeremyevans jeremyevans committed Sep 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -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.

0 comments on commit 1ebf84a

Please sign in to comment.