Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.244 kb
require 'active_record_ext'
require 'array_ext'
# extend activerecord with the :preload method
ActiveRecord::Base.send(:include, AssociationsPreload::Base)
# add :preload method to array
Array.send(:include, AssociationsPreload::Array)
Jump to Line
Something went wrong with that request. Please try again.