Jean-Christophe Michel
2007-Jan-04 08:46 UTC
[Betternestedset-talk] Fwd: [Rails] Re: How to hide a database column from ActiveRecord?
Hi Krishna, D?but du message r?exp?di? :> David Scheffel wrote: >> Can I tell ActiveRecord to ignore this column and not to add it to the >> Attributes array? > > I submitted a patch at http://dev.rubyonrails.org/ticket/6896 which > adds an attr_readonly method to ActiveRecord::Base to ignore attributes > in update queries. It also fixes a bug with counter_cache. Hopefully > it receives enough support and provides enough value to be applied, but > if not I can make it into a plugin.Don''t you think this would be the solution for lft and rgt and the concurrency pb ? Jean-Christophe Michel -- symetrie.com Better Nested Set for rails: http://opensource.symetrie.com/trac/better_nested_set
Krishna Dole
2007-Jan-04 15:47 UTC
[Betternestedset-talk] Fwd: [Rails] Re: How to hide a database column from ActiveRecord?
Yes! I found that ticket just yesterday and added a comment in support of it, in fact. I guess we should send an email to the core list pleading for its inclusion. cheers, Krishna On 1/4/07, Jean-Christophe Michel <jc.michel at symetrie.com> wrote:> Hi Krishna, > > D?but du message r?exp?di? : > > David Scheffel wrote: > >> Can I tell ActiveRecord to ignore this column and not to add it to the > >> Attributes array? > > > > I submitted a patch at http://dev.rubyonrails.org/ticket/6896 which > > adds an attr_readonly method to ActiveRecord::Base to ignore attributes > > in update queries. It also fixes a bug with counter_cache. Hopefully > > it receives enough support and provides enough value to be applied, but > > if not I can make it into a plugin. > > Don''t you think this would be the solution for lft and rgt and the > concurrency pb ? > > Jean-Christophe Michel > -- > symetrie.com > > Better Nested Set for rails: > http://opensource.symetrie.com/trac/better_nested_set > > _______________________________________________ > Betternestedset-talk mailing list > Betternestedset-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/betternestedset-talk >