This project is archived and is in readonly mode.

#1423 ✓duplicate
Nate

Optional Exception on Mass-assignment of Protected Attributes

Reported by Nate | November 20th, 2008 @ 08:16 PM | in 2.x

Originally squashed here: http://dev.rubyonrails.org/ticke...

What do you guys think of restoring this functionality, but defaulting to the current behavior? That is, have a configuration option that lets you turn on whiny mass-assignment of protected attributes, but by default it just does logger.debug with a warning. I know that during development I get bit by missing the debug messages way too often when adding fields and changing forms.

If there's interest I can patch it.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages