We are going to remove mass-assignment protection in the model layer from
the core so I think we are not interested.

Rafael Mendonça França
http://twitter.com/rafaelfranca
https://github.com/rafaelfranca



On Sun, Aug 12, 2012 at 11:39 PM, Godfrey Chan <[email protected]> wrote:

> but can't remember the syntax for "without_protection"
>
>
> At the risk of asking the obvious question, what exactly is so confusing
> about..
>
> User.create({name: 'Pete', email: '[email protected]', account: 
> Account.first}, without_protection: true)
>
> and…
>
> User.find(1).update_attributes({account: new_account}, without_protection: 
> true)
>
> ?
>
> Maybe it's just me, but the differences between this and sudo_* seems so
> minimal that I don't think it's worth it.
>
> Godfrey
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to