Sha256: 020428cad3e54701c8f72d71641d2878101d52cb06002b00265ac11f3ca80692

Contents?: true

Size: 266 Bytes

Versions: 2

Compression:

Stored size: 266 Bytes

Contents

module Comable
  class HomeController < Comable::ApplicationController
    before_filter :load_products, only: :show

    def show
    end

    private

    def load_products
      @products = Comable::Product.includes(:images, :variants).limit(4)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comable-frontend-0.7.1 app/controllers/comable/home_controller.rb
comable-frontend-0.7.0 app/controllers/comable/home_controller.rb