search for: role2

Displaying 1 result from an estimated 1 matches for "role2".

Did you mean: role
2007 Sep 24
0
Finds and Single Table Inheritance
Can someone please help me understand the results that are being produced when doing queries on a table that is using single inheritance. Table1 < ActiveRecord::Base Role1 < Table1 Role2 < Table1 Role3 < Table1 1. Role1.find(:all) produces: "SELECT * FROM table1 WHERE type = ''Role1''" 2. any other find on table1 that calls anything but the Role1 Class EXAMPLES. Table1.find(:all) or Table1.find(:all, :conditions => [''type = "Role2...