-
Notifications
You must be signed in to change notification settings - Fork 52
NoMethodError: undefined method `sanitize' with Rails 5.1.0.rc2 #30
Comments
i used rake db:populate and got the above error, after unpacking gem i saw sanitize method still being called. |
I'm facing the same issue reported, the
It passed with the solution of @norikt, thx! def rows_sql_arr
@records.map do |record|
quoted_attributes = record.attribute_values.map { |v| @model_class.connection.quote(v) }
"(#{quoted_attributes.join(', ')})"
end
end |
This has been fixed in a few forks of Populator. But if you want to keep using the original Populator, you can monkey-patch in a solution. Create a file
and then require it before using Populator
|
I got below error.
I'm using rails that versioned
5.1.0.rc2
.and I tried with
5.0.2
,db:seed
passed.this problem occurs only rails 5.1.0.rc2.
The text was updated successfully, but these errors were encountered: