What''s the rationale for meta-data such as @columns, @indexes, etc not being inheritable attributes? Is it because they''re typically not populated until after inherited is called anyway? --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
On 3/8/07, Simon Harris <haruki.zaemon@gmail.com> wrote:> > > What''s the rationale for meta-data such as @columns, @indexes, etc not > being inheritable attributes?Probably because subclassing of AR models doesn''t have to trigger STI. If you have class Post < Content ... Post data doesn''t have to be stored in the "contents" table. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Well blow me down. Good point :) On Mar 9, 4:13 am, "Mislav Marohnić" <mislav.maroh...@gmail.com> wrote:> On 3/8/07, Simon Harris <haruki.zae...@gmail.com> wrote: > > > > > What''s the rationale for meta-data such as @columns, @indexes, etc not > > being inheritable attributes? > > Probably because subclassing of AR models doesn''t have to trigger STI. If > you have > > class Post < Content > > ... Post data doesn''t have to be stored in the "contents" table.--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---