edge badge
Methods
N
T
Included Modules
Constants
ARRAY_ESCAPE = "\\" * 2 * 2
 
Attributes
[R] delimiter
[R] subtype
Class Public methods
new(subtype, delimiter = ',')
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 23
def initialize(subtype, delimiter = ',')
  @subtype = subtype
  @delimiter = delimiter
end
Instance Public methods
type_cast_for_database(value)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 40
def type_cast_for_database(value)
  if value.is_a?(::Array)
    cast_value_for_database(value)
  else
    super
  end
end
type_cast_from_database(value)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 28
def type_cast_from_database(value)
  if value.is_a?(::String)
    type_cast_array(parse_pg_array(value), :type_cast_from_database)
  else
    super
  end
end
type_cast_from_user(value)
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 36
def type_cast_from_user(value)
  type_cast_array(value, :type_cast_from_user)
end