rails / protected_attributes

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

README: "Models with undeclared attribute protection" #65

Closed henrik closed 9 years ago

henrik commented 9 years ago

Looked in the README when I had this issue, so this would have helped me.

I realize this isn't a super elegant solution, but it makes Rails upgrades more seamless.

rafaelfranca commented 9 years ago

We usually don't link to external pages. About the workaround is not better to set config.active_record.whitelist_attributes = false?

henrik commented 9 years ago

Hey, sorry for waiting so long to reply.

You're right – that seems to be exactly what I was after. Thanks!