On Jul 10, 2012, at 12:29 PM, Prem Sichanugrist wrote:

> Yeah, Jay. Your solution won't work with inheritance.
> 
> By deprecating the attr_protected, you can allow most of the attributes 
> anyway (but seriously seriously seriously discouraged) by do something like:
> 
>    attr_accessible columns - [:created_at, :updated_at]

Note that this may die in exciting ways if you put it in a model that hasn't 
been created in the DB yet. (since columns looks at the table metadata)

--Matt Jones

-- 
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