Sha256: 0759dad6487fe736141e4244268c6f7c76eaf82f66912b7cf88016c859cec43c
Contents?: true
Size: 547 Bytes
Versions: 29
Compression:
Stored size: 547 Bytes
Contents
module Spree class ContentController < Spree::StoreController # Don't serve local files or static assets before_filter { 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
29 entries across 29 versions & 2 rubygems