Flinn Mueller on 1 May 2007 00:59:43 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PhillyOnRails] sti and acts_as_tree


In an attempt to save the 15 minutes this might take to test I'm asking if anyone here knows already.

Can you use acts_as_tree with mixed object single table inheritance? ie.

class Location < AR:Base
  acts_as_tree
end

class Facility < Location; end

Then make a tree with a facility as a root, having locations as children like so:

Facility
 +----Location
         +----Location
 +----Location

(my crude drawing)

Thanks!
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk