sundbp
4/12/2010 - 9:44 PM

console example

psundberg@lnpsprod1:~/dev/bug-reproductions/sti-reload $ ./script/rails c
[datamapper] Setting up the "development" environment:
[datamapper] Setting up :default repository: '/home/psundberg/dev/bug-reproductions/sti-reload/db/development.sqlite3' on sqlite3
Loading development environment (Rails 3.0.0.beta3)
ruby-1.9.1-p378 > Parent.descendants
 => #<DataMapper::Model::DescendantSet:0x0000001c942b08 @descendants=[Parent], @ancestors=#<DataMapper::Model::DescendantSet:0x0000001d40aa88 @descendants=[Parent, ChildA, ChildB, Parent], @ancestors=nil>>