rails / protected_attributes

Protect attributes from mass-assignment in ActiveRecord models.
MIT License
228 stars 92 forks source link

Re-alias #attributes= method #96

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi,

While upgrading an old app to rails 4, I got weird errors from record.attributes =. I tracked the issue to be rails's assign_attributes method being called instead of the one provided by this gem, re-aliasing attributes= solves the issue.

Thanks.