Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 244 Bytes
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)
Something went wrong with that request. Please try again.