Sha256: 21a344bef66a52a4c1012dd46b31197ca9a18858c74296db8820c681f3b41de0

Contents?: true

Size: 307 Bytes

Versions: 102

Compression:

Stored size: 307 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Decimal < Type::Decimal # :nodoc:
          def infinity(options = {})
            BigDecimal.new("Infinity") * (options[:negative] ? -1 : 1)
          end
        end
      end
    end
  end
end

Version data entries

102 entries across 100 versions & 10 rubygems

Version Path
activerecord-4.2.11.3 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-4.2.11.2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.7.2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-4.2.11.1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.7.1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-4.2.11 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.7 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.5 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.5.rc1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-4.2.10 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-4.2.10.rc1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.4 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.6 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.4.rc1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.6.rc1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.3 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.3.rc3 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.5 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.0.5.rc2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.3.rc2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb