Method: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array#serialize

Defined in:
lib/active_record/connection_adapters/postgresql/oid/array.rb

#serialize(value) ⇒ Object



47
48
49
50
51
52
53
54
# File 'lib/active_record/connection_adapters/postgresql/oid/array.rb', line 47

def serialize(value)
  if value.is_a?(::Array)
    casted_values = type_cast_array(value, :serialize)
    Data.new(@pg_encoder, casted_values)
  else
    super
  end
end