Module: Spree::Api::V2::ProductListIncludes
- Defined in:
- app/controllers/concerns/spree/api/v2/product_list_includes.rb
Overview
These includes are not picked automatically by ar_lazy_preload gem so we need to specify them manually.
Instance Method Summary collapse
Instance Method Details
#product_list_includes ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/controllers/concerns/spree/api/v2/product_list_includes.rb', line 6 def product_list_includes { option_types: [], product_properties: [], metafields: [], variant_images: [], tags: [], taxons: [:taxonomy], master: [:prices, :images, { stock_items: :stock_location }, metafields: [], option_values: []], variants: [:prices, :images, { stock_items: :stock_location }, metafields: [], option_values: []] } end |