#25 √ resolved
Luke Francl

[PATCH] make should_protect_attributes work with attr_accessible

Reported by Luke Francl | March 10th, 2008 @ 12:38 AM

We've been using attr_accessible (attr_protected's more paranoid brother).

If I have a model like:

class User < ActiveRecord::Base

attr_accessible :name

end

I expect

should_protect_attributes :password

to pass (because all attributes not accessible are protected from mass assignment).

With a quick change to should_protect_attributes, this works.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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