Module: Miscellany::CustomPreloaders

Defined in:
lib/miscellany/active_record/custom_preloaders.rb

Overview

TODO Write Specs

Defined Under Namespace

Modules: AssociationBuilderExtension, PreloaderExtension

Class Method Summary collapse

Class Method Details

.installObject



54
55
56
57
# File 'lib/miscellany/active_record/custom_preloaders.rb', line 54

def self.install
  ActiveRecord::Associations::Builder::Association.extensions << AssociationBuilderExtension
  ActiveRecord::Associations::Preloader.prepend(CustomPreloaders::PreloaderExtension)
end