From: Brian Candler Date: 2010-08-01T20:28:08+09:00 Subject: Re: Active Record Inheritance with out using type_id Austin Fagan wrote:0 > I am writing a script that queries a database for records with either > the value '333' or '444' in a field called pin_id in a table called pop. > Currently I have created a model called GoodPop using set_table_name > :pop > I have overrided the first, last and all methods to return only those > records with a pin_id of either '333' or '444'. Don't Do That. Look up the AR documentation for named scopes and anonymous scopes. -- Posted via http://www.ruby-forum.com/.