-
Notifications
You must be signed in to change notification settings - Fork 164
locking down with ForbiddenAttributesProtection only on controllers #142
Comments
AR will update with no protection if you just use a regular hash. It's only AP::Parameter classes that are subjected to the check. On May 17, 2013, at 23:08, Adriano Bacha [email protected] wrote:
|
then, I don't get why I'm having this error:
maybe problems with a field named "type"? |
Yes. Type is a reserved column name used for single-table inheritance. It's not available for general use. On May 18, 2013, at 15:12, Adriano Bacha [email protected] wrote:
|
but without strong_params I could use it without any trouble Adriano Neder Bacha gtalk: abacha On Sun, May 19, 2013 at 1:22 AM, David Heinemeier Hansson <
|
and I don't use it as a column name, its a simple enum field |
is it possible to lock down submit requests with ForbiddenAttributesProtection only if it came by a controller?
I wish I could do a "forced" update inside my model without worrying about attributes protection
The text was updated successfully, but these errors were encountered: