1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix the broken build

This is really strange, as it passes on Travis for 2.3, and it passes
for me locally on 2.2. But on travis w/ 2.2, passing `Float::INFINITY`
in is resulting in an infinite loop. This should resolve it.
This commit is contained in:
Sean Griffin 2016-01-08 17:42:31 -07:00
parent 7b065f623f
commit 30391e9ddb

View file

@ -31,6 +31,8 @@ module ActiveRecord
if value.acts_like?(:time)
value.in_time_zone
elsif value.is_a?(::Float)
value
else
map(value) { |v| convert_time_to_time_zone(v) }
end