Class: ROM::SQL::Postgres::TypeSerializer Private

Inherits:
TypeSerializer show all
Defined in:
lib/rom/sql/extensions/postgres/type_serializer.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Methods inherited from TypeSerializer

[], register

Instance Method Details

#call(type) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
40
41
42
43
# File 'lib/rom/sql/extensions/postgres/type_serializer.rb', line 37

def call(type)
  super do
    if type.respond_to?(:primitive) && type.primitive.equal?(Array)
      "#{ type.meta[:type] }[]"
    end
  end
end