Adding a method to ActiveRecord.

Just subclass ActiveRecord::Base:

   class MyBaseExtension < ActiveRecord::Base
     self.abstract_class = true
     # ...
   end

and then make all models inherit from MyBaseExtension.

-- fxn

There is (also) a toggle on ActiveRecord which is really useful.

http://ar.rubyonrails.com/classes/ActiveRecord/Base.html#M000399

Vish