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.
Instance Method Summary collapse
Instance Method Details
#in_time_zone(zone = ::Time.zone) ⇒ Object
170 171 172 |
# File 'lib/marty/monkey.rb', line 170 def in_time_zone(zone = ::Time.zone) self == 'infinity' ? self : old_in_time_zone(zone) end |
#old_in_time_zone ⇒ Object
168 |
# File 'lib/marty/monkey.rb', line 168 alias_method :old_in_time_zone, :in_time_zone |