Sha256: 3beb7fddc54fd573f293632d7d39b1803fe052ae4e861cc9463c297fcfe67bb9

Contents?: true

Size: 550 Bytes

Versions: 29

Compression:

Stored size: 550 Bytes

Contents

module Spree
  class ContentController < Spree::StoreController
    # Don't serve local files or static assets
    before_filter { render_404 if params[:path] =~ /(\.|\\)/ }
    after_filter :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 & 1 rubygems

Version Path
spree_frontend-2.3.2 app/controllers/spree/content_controller.rb
spree_frontend-2.2.5 app/controllers/spree/content_controller.rb
spree_frontend-2.3.1 app/controllers/spree/content_controller.rb
spree_frontend-2.2.4 app/controllers/spree/content_controller.rb
spree_frontend-2.2.3 app/controllers/spree/content_controller.rb
spree_frontend-2.3.0 app/controllers/spree/content_controller.rb
spree_frontend-2.2.2 app/controllers/spree/content_controller.rb
spree_frontend-2.2.1 app/controllers/spree/content_controller.rb
spree_frontend-2.2.0 app/controllers/spree/content_controller.rb