Module: N1Loader::ArLazyPreload::Loadable
- Included in:
- Loadable
- Defined in:
- lib/n1_loader/ar_lazy_preload/loadable.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#n1_loader(name) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/n1_loader/ar_lazy_preload/loadable.rb', line 6 def n1_loader(name) return n1_loaders[name] if n1_loaders[name] ContextAdapter.new(lazy_preload_context).try_preload_lazily(name) if respond_to?(:lazy_preload_context) super end |