Method: KktShoppe::ProductsController#index

Defined in:
app/controllers/kkt_shoppe/products_controller.rb

#indexObject



7
8
9
# File 'app/controllers/kkt_shoppe/products_controller.rb', line 7

def index
  @products = KktShoppe::Product.root.includes(:translations, :stock_level_adjustments, :product_categories, :variants).order(:name).group_by(&:product_category).sort_by { |cat,pro| cat.name }
end