Module: Serega::SeregaPlugins::Preloads::InstanceMethods

Defined in:
lib/serega/plugins/preloads/preloads.rb

Overview

Adds #preloads instance method

Instance Method Summary collapse

Instance Method Details

#preloadsHash

Returns relations that can be preloaded to omit N+1.

Returns:

  • (Hash)

    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