Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/marty/monkey.rb
Overview
Rails 4 doesn’t handle ‘infinity’ datetime properly due to in_time_zone conversion. Ergo this hack.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#in_time_zone(zone = ::Time.zone) ⇒ Object
87 88 89 |
# File 'lib/marty/monkey.rb', line 87 def in_time_zone(zone = ::Time.zone) self == 'infinity' ? self : old_in_time_zone(zone) end |
#old_in_time_zone ⇒ Object
85 |
# File 'lib/marty/monkey.rb', line 85 alias_method :old_in_time_zone, :in_time_zone |