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:
parent
7b065f623f
commit
30391e9ddb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue