bisscomm/refinerycms-products

View on GitHub
app/controllers/refinery/products/shop_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Refinery
  module Products
    class ShopController < ::ApplicationController
      include Refinery::Products::ControllerHelper

      helper :'refinery/products/products'

      before_action :find_page, :find_all_root_categories, :find_all_categories

      protected

      def find_page
        @page = Refinery::Page.find_by(:link_url => Refinery::Products.shop_path)
      end
    end
  end
end