Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Decimal

Inherits:
Type::Decimal
  • Object
show all
Defined in:
activerecord/lib/active_record/connection_adapters/postgresql/oid/decimal.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/decimal.rb', line 6

def infinity(options = {})
  BigDecimal.new("Infinity") * (options[:negative] ? -1 : 1)
end