Sha256: d8badd1805d8f38b07805ac71ac6274666d5b9ca5da7a1ec0a25511aea2b2618
Contents?: true
Size: 547 Bytes
Versions: 23
Compression:
Stored size: 547 Bytes
Contents
module Spree class ContentController < Spree::StoreController # Don't serve local files or static assets before_action { render_404 if params[:path] =~ /(\.|\\)/ } after_action :fire_visited_path, only: :show rescue_from ActionView::MissingTemplate, :with => :render_404 respond_to :html def show render :action => params[:path] end def cvv render :layout => false end def fire_visited_path Spree::PromotionHandler::Page.new(current_order, params[:path]).activate end end end
Version data entries
23 entries across 23 versions & 2 rubygems