mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Edited activesupport/lib/active_support/core_ext/time/calculations.rb via GitHub
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user