Module: Associationist::ActiveRecordPreloaderBranchPatch

Defined in:
lib/associationist/associations/preloader/singular_association.rb

Instance Method Summary collapse

Instance Method Details

#preloader_for(reflection) ⇒ Object



80
81
82
83
84
85
86
87
# File 'lib/associationist/associations/preloader/singular_association.rb', line 80

def preloader_for(reflection)
  config = reflection.options[:associationist]
  if config
    Associationist::Associations::Preloader::SingularAssociation
  else
    super
  end
end