Sha256: a3bb48f5d8e29001e8ab571a158269e06762c9abf5d9ba6fbd9b335dd6c98bde

Contents?: true

Size: 224 Bytes

Versions: 4

Compression:

Stored size: 224 Bytes

Contents

class HomeController < Spree::BaseController
  helper :products, :taxons

  def index
    home_taxonomy = get_taxonomies.find{|t| t.show_on_homepage? }
    @taxons = home_taxonomy ? home_taxonomy.root.children : []
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synergy_bootstrap_theme-0.0.4 app/controllers/home_controller.rb
synergy_bootstrap_theme-0.0.3 app/controllers/home_controller.rb
synergy_bootstrap_theme-0.0.2 app/controllers/home_controller.rb
synergy_bootstrap_theme-0.0.1 app/controllers/home_controller.rb