Module: UnionOf::PreloaderExtension

Defined in:
lib/union_of/railtie.rb

Instance Method Summary collapse

Instance Method Details

#preloader_for(reflection) ⇒ Object



70
71
72
73
74
75
76
# File 'lib/union_of/railtie.rb', line 70

def preloader_for(reflection)
  if reflection.union_of?
    UnionOf::Preloader::Association
  else
    super
  end
end