Sha256: 51e80999e3ce9c5a084ac91e9f031c0ac3584467ab1a3abfbdc74f633270f5bf

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-5.1.7 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.7.rc1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.6.2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.6.1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-5.1.6 lib/active_record/connection_adapters/postgresql/oid/decimal.rb