lib/activerecord-postgres-composite-types/active_record_3_2.rb
def type_cast_code_with_composite_types(var_name)
        if composite_type_klass = PostgreSQLAdapter.composite_type_classes[type]
          "#{self.class}.string_to_composite_type(#{composite_type_klass}, #{var_name})"
        else
          type_cast_code_without_composite_types(var_name)
        end
      end
# Casts value (which is a String) to an appropriate instance.
Casts value (which is a String) to an appropriate instance.
Casts value ( which is a String ) to an appropriate instance .
def type_cast_code_with_composite_types(var_name)
        if composite_type_klass = PostgreSQLAdapter.composite_type_classes[type]
          "#{self.class}.string_to_composite_type(#{composite_type_klass}, #{var_name})"
        else
          type_cast_code_without_composite_types(var_name)
        end
      end
def type_cast_code_with_composite_types ( var_name ) if composite_type_klass = PostgreSQLAdapter . composite_type_classes [ type ] "#{self.class}.string_to_composite_type(#{composite_type_klass}, #{var_name})" else type_cast_code_without_composite_types ( var_name ) end end
Casts value (which is a String) to an appropriate instance.
Casts value ( which is a String ) to an appropriate instance .
var_name