I\'ve done some reading about how to extend ActiveRecord:Base class so my models would have some special methods. What is the easy way to extend it (step by step tutorial)?<
Step 1
module FooExtension def foo puts "bar :)" end end ActiveRecord::Base.send :include, FooExtension
Step 2
# Require the above file in an initializer (in config/initializers) require 'lib/foo_extension.rb'
Step 3
There is no step 3 :)