diff --git a/lib/populator/factory.rb b/lib/populator/factory.rb index 82332a7..5654168 100644 --- a/lib/populator/factory.rb +++ b/lib/populator/factory.rb @@ -83,7 +83,7 @@ def columns_sql def rows_sql_arr @records.map do |record| - quoted_attributes = record.attribute_values.map { |v| @model_class.sanitize(v) } + quoted_attributes = record.attribute_values.map { |v| @model_class.connection.quote(v) } "(#{quoted_attributes.join(', ')})" end end