Hello,
I have a class that derives from ActiveRecord::Base. This class has a subclass that is differentiated in the database by a type id column. How do I make sure that all the inherited active record functions in the derived classes append the type_id column to the conditions hash on any queries that are executed by the derived class? Are there any kind of "before" functions that I could override to inject a condition into the process for the derived classes?
Thanks!