Source: show | on GitHub
# File activerecord/lib/active_record/connection_adapters/postgresql/oid.rb, line 215 def type_cast(value) case value when nil; nil when 'Infinity'; ::Float::INFINITY when '-Infinity'; -::Float::INFINITY when 'NaN'; ::Float::NAN else value.to_f end end