Sha256: 8bc4e512063d33887400844515894828e75d8d507ba3e7a4f5f05190cebd65f0

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

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

    def show
    end

    private

    def load_products
      @products = Comable::Product.limit(5)
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
comable-frontend-0.7.0.beta2 app/controllers/comable/home_controller.rb
comable-frontend-0.7.0.beta1 app/controllers/comable/home_controller.rb
comable-frontend-0.6.0 app/controllers/comable/home_controller.rb
comable_frontend-0.5.0 app/controllers/comable/home_controller.rb
comable_frontend-0.4.2 app/controllers/comable/home_controller.rb