Skip to content

Commit 445aa7c

Browse files
committed
Merge remote-tracking branch 'leonardvandriel/master'
* leonardvandriel/master: Fix incorrect extraneous quoting (issues tlconnor#34 and tlconnor#37)
2 parents 55722cb + be1bef6 commit 445aa7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/activerecord-postgres-array/activerecord.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def arel_attributes_values(include_primary_key = true, include_readonly_attribut
1515
if include_readonly_attributes || !self.class.readonly_attributes.include?(name)
1616
value = read_attribute(name)
1717
if column.type.to_s =~ /_array$/ && value && value.is_a?(Array)
18-
value = "'#{value.to_postgres_array(new_record?)}'"
18+
value = value.to_postgres_array(new_record?)
1919
elsif klass.serialized_attributes.include?(name)
2020
value = @attributes[name].serialized_value
2121
end

0 commit comments

Comments
 (0)