Skip to content

Commit

Permalink
Merge remote-tracking branch 'leonardvandriel/master'
Browse files Browse the repository at this point in the history
* leonardvandriel/master:
  Fix incorrect extraneous quoting (issues tlconnor#34 and tlconnor#37)
  • Loading branch information
vjt committed Nov 27, 2013
2 parents 55722cb + be1bef6 commit 445aa7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/activerecord-postgres-array/activerecord.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def arel_attributes_values(include_primary_key = true, include_readonly_attribut
if include_readonly_attributes || !self.class.readonly_attributes.include?(name)
value = read_attribute(name)
if column.type.to_s =~ /_array$/ && value && value.is_a?(Array)
value = "'#{value.to_postgres_array(new_record?)}'"
value = value.to_postgres_array(new_record?)
elsif klass.serialized_attributes.include?(name)
value = @attributes[name].serialized_value
end
Expand Down

0 comments on commit 445aa7c

Please sign in to comment.