As an addition, accepts_nested_attributes is a feature *meant* for associations, whereas mass assignment helpers - attr_accessible and friends - are not. I don't think it's that worth to change it in a way to check for associations when they're called for each attribute, that'd be a lot of effort for a not majority of use cases (ie it'd slow down the attribute definitions to search for associations). Just my two cents :).
On Tue, Aug 14, 2012 at 11:55 AM, Steve Klabnik <[email protected]>wrote: > Even better: mass assignment security is going away: > https://github.com/rails/strong_parameters > > -- > 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. > > -- At. Carlos Antonio -- 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.
