Adding a method to ActiveRecord.

In the lib directory create a file and in it use

module ActiveRecord

class Base

 def my_method

end

end

I think that should be automatically loaded and included (not sure if it’s completely automagic). Alternatively you can put that in you environment.rb and it will get included.

I’m sure there are many other ways of doing this though. This may not be the best one.