Module: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Infinity

Included in:
Date, DateTime, Float, Integer, Money, Time
Defined in:
activerecord/lib/active_record/connection_adapters/postgresql/oid/infinity.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#infinity(options = {}) ⇒ Object


6
7
8
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid/infinity.rb', line 6

def infinity(options = {})
  options[:negative] ? -::Float::INFINITY : ::Float::INFINITY
end