Files

Class/Module Index [+]

Quicksearch

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

Public Instance Methods

infinity(options = {}) click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 285
def infinity(options = {})
  BigDecimal.new("Infinity") * (options[:negative] ? -1 : 1)
end
type() click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 277
def type; :decimal end
type_cast(value) click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 279
def type_cast(value)
  return if value.nil?

  ConnectionAdapters::Column.value_to_decimal value
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.