lib/activerecord-postgres-composite-types/active_record_4_1.rb
def quote_with_composite_types(value, column = nil)
	      if value.class < PostgresCompositeType
		      "'#{PostgreSQLColumn.composite_type_to_string(value, self).gsub(/'/, "''")}'"
	      else
		      quote_without_composite_types(value, column)
	      end
      end
# Quotes the column value to help prevent {SQL injection attacks}
Quotes the column value to help prevent {SQL injection attacks}
Quotes the column value to help prevent { SQL injection attacks }
def quote_with_composite_types(value, column = nil)
	      if value.class < PostgresCompositeType
		      "'#{PostgreSQLColumn.composite_type_to_string(value, self).gsub(/'/, "''")}'"
	      else
		      quote_without_composite_types(value, column)
	      end
      end
def quote_with_composite_types ( value , column = nil ) if value . class < PostgresCompositeType "'#{PostgreSQLColumn.composite_type_to_string(value, self).gsub(/'/, "''")}'" else quote_without_composite_types ( value , column ) end end
Quotes the column value to help prevent {SQL injection attacks}
Quotes the column value to help prevent { SQL injection attacks }
value
column