Skip to content

Commit

Permalink
Fix ActiveRecord::Base.sanitize removed in 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
norikt authored Aug 2, 2017
1 parent cd1373d commit 30fdcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/populator/factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30fdcc0

Please sign in to comment.