On 20 Sep 2008, at 12:51, Jonas Schneider wrote:

>
> Thanks for the link.
>
> At the bottom there, there is an unanswered question:
>
> Q. What about model attributes when using STI?
>
> eg. I have Page, Article and Comment all inheriting from ContentItem.
> Only comment uses the commentable_id column.
>
> Some of these models will have more attributes than others. How do I
> make sure the more specific atrributes are hidden or disabled from the
> parent model, while enabling those attributes for select models using
> those attributes?

Nothing builtin for doing this. If you have a lot of attributes like  
this then it can be a sign that STI isn't the right tool for the job.

Fred
>
>
> That`s also interesting me.
> Can you tell me more about this?
>
> Thanks
> Jonas
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to