
mass assignment of id warnings
Reported by Peter Gumeson | May 17th, 2009 @ 04:59 AM
In authlogic_openid it looks like the intent behind the attributes_to_save method is to allow overriding.
However, you might also want to add :id to the blacklist by default. Many people like to set their app to raise an exception when mass assignment of a protected attribute is attempted. Not %100 sure, but I believe rails protects id automatically. Anyway, seems it can't hurt to exclude it.
Thanks,
Peter
Comments and changes to this ticket
-
Ben Johnson May 21st, 2009 @ 03:51 AM
- State changed from new to resolved
Good idea, I implemented this.
-
-
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.