lib/activerecord-postgres-composite-types/oid/composite_type_4_1.rb
# Casts a Ruby value to something appropriate for writing to the database.
Casts a Ruby value to something appropriate for writing to the database.
Casts a Ruby value to something appropriate for writing to the database .
def type_cast_for_write(value)
						if value.is_a?(@composite_type_class) || value.nil?
							value
						else
							@composite_type_class.new(value)
						end
					end
def type_cast_for_write ( value ) if value . is_a? ( @composite_type_class ) || value . nil? value else @composite_type_class . new ( value ) end end
Casts a Ruby value to something appropriate for writing to the database.
Casts a Ruby value to something appropriate for writing to the database .
# Cast Hash and Array to composite type klass
value