method
cast
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array
cast(value)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 27
def cast(value)
if value.is_a?(::String)
value = @pg_decoder.decode(value)
end
type_cast_array(value, :cast)
end