Monkey patch ActiveRecord::Relation instead of ActiveRecord::Base to simplify code and make supporting Rails 3 and 4 easier.