Rafael, That's good to know, thanks!
On Sunday, August 12, 2012 10:45:53 PM UTC-4, Rafael Mendonça França wrote: > > 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]<javascript:> > > 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] <javascript:>', >> 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]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> 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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/Xy6meZA2JuEJ. 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.
