class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Array

Attributes

subtype[R]

Public Class Methods

new(subtype) click to toggle source
# File lib/active_record/connection_adapters/postgresql/oid.rb, line 89
def initialize(subtype)
  @subtype = subtype
end

Public Instance Methods

type_cast(value) click to toggle source
# File lib/active_record/connection_adapters/postgresql/oid.rb, line 93
def type_cast(value)
  if String === value
    ConnectionAdapters::PostgreSQLColumn.string_to_array value, @subtype
  else
    value
  end
end