small medium large xlarge

04 Feb 2008, 17:33
Sultan Bhatia (7 posts)

Starting on page 334, section 18.4 (pdf version) there is an example of single table inheritance. The finds in the examples are on the Person class: manager = Person.find_by_name(“Wilma Flint” ) customer = Person.find_by_name(“Bert Public” )

My question is: is it possible to do the finds on the Manager and Customer classes like: manager = Manager.find_by_name(“Wilma Flint” ) customer = Customer.find_by_name(“Bert Public” )

You must be logged in to comment