Hi Ryan, glad you like my proposal.

I implemented all the changes mentioned in my last email, only 
#assign_attributes is pending. http://bit.ly/1wSmS

Few considerations:
* I implemented #protect_from_mass_assignment at class level, instead of 
a top-level ActiveRecord flag, because gives a fine grained control on 
the protection.

* Associations attribute writers should be explicitly declared as 
accessible.

* #accepts_nested_attributes_for, automatically adds the attribute to 
the accessible list

   class Member < ActiveRecord::Base
     has_many :posts
     accepts_nested_attributes_for :posts
   end

   Member.accessible_attributes # => [ 'posts_attributes' ]

Cheers,
Luca
-- 
blog: www.lucaguidi.com

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to