Sha256: 2b3d4b3d5a326e5da7694f0943bb71480a94010a8ef05769ca63f2e5ded12d72

Contents?: true

Size: 334 Bytes

Versions: 184

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

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

184 entries across 179 versions & 14 rubygems

Version Path
activerecord-8.0.0 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.2.2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.1.5 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-8.0.0.rc2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.2.1.2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.1.4.2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.0.8.6 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-6.1.7.10 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-8.0.0.rc1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-6.1.7.9 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.2.1.1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.1.4.1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-7.0.8.5 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
activerecord-8.0.0.beta1 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
omg-activerecord-8.0.0.alpha9 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
omg-activerecord-8.0.0.alpha8 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
omg-activerecord-8.0.0.alpha7 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
omg-activerecord-8.0.0.alpha4 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
omg-activerecord-8.0.0.alpha3 lib/active_record/connection_adapters/postgresql/oid/decimal.rb
omg-activerecord-8.0.0.alpha2 lib/active_record/connection_adapters/postgresql/oid/decimal.rb