blob: e7d33855c45a97c510a93d7dc587c0ffb41ad322 (
plain) (
tree)
|
|
# 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
|