Sha256: d28728a34ba174c795c761fd9c4c2896b2062632736766cbe24502d3e8132541
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
Spree::HomeController.class_eval do before_filter :get_homepage def index @searcher = Spree::Config.searcher_class.new(params) @products = @searcher.retrieve_products render :template => "spree/pages/home" end private def get_homepage @page = Spree::Page.find_by_path("/") redirect_to products_url if @page.nil? @page end def accurate_title @page.meta_title unless @page.nil? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_essential_cms-0.4.0 | app/controllers/spree/home_controller_decorator.rb |