On Dec 10, 3:02 am, Philip Hallstrom <[EMAIL PROTECTED]> wrote:
> I don't know anything about your app, but if you don't use STI (ie.  
> you leave abstract_class = true) you'll never be able to tell the  
> difference b/n the two classes.
>
> That is... you could..
>
> create a BlockSchedule with ID=1
> create a DaySchedule with ID=2
>
> BlockSchedule.all => returns both records.

That's not true. With the parent class being an abstract class they'd
be in two completely separate tables.

Fred

>
> If you use STI it would only return the first.  To get them all you'd  
> do Schedule.all
>
> Anyway, maybe this isn't what you want and if so ignore me :)
>


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
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