Method: Time.===
- Defined in:
- lib/active_support/core_ext/time/calculations.rb
.===(other) ⇒ Object
Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances
15 16 17 |
# File 'lib/active_support/core_ext/time/calculations.rb', line 15 def ===(other) super || (self == Time && other.is_a?(ActiveSupport::TimeWithZone)) end |