Module: Serega::SeregaPlugins::Preloads::MapPointInstanceMethods

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

Overview

Serega::SeregaMapPoint additional/patched instance methods

Instance Method Summary collapse

Instance Method Details

#preloadsHash

Returns preloads for nested attributes.

Returns:

  • (Hash)

    preloads for nested attributes



272
273
274
# File 'lib/serega/plugins/preloads/preloads.rb', line 272

def preloads
  @preloads ||= PreloadsConstructor.call(nested_points)
end

#preloads_pathArray<Symbol>

Returns preloads path for current attribute.

Returns:

  • (Array<Symbol>)

    preloads path for current attribute



279
280
281
# File 'lib/serega/plugins/preloads/preloads.rb', line 279

def preloads_path
  attribute.preloads_path
end