Module: Serega::SeregaPlugins::Preloads::InstanceMethods
- Defined in:
- lib/serega/plugins/preloads/preloads.rb
Overview
Adds #preloads instance method
Instance Method Summary collapse
-
#preloads ⇒ Hash
Relations that can be preloaded to omit N+1.
Instance Method Details
#preloads ⇒ Hash
Returns relations that can be preloaded to omit N+1.
59 60 61 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 59 def preloads @preloads ||= PreloadsConstructor.call(map) end |