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.13 app/controllers/spree/content_controller.rb
spree_frontend-2.2.14 app/controllers/spree/content_controller.rb
spree_frontend-2.3.12 app/controllers/spree/content_controller.rb
spree_frontend-2.2.13 app/controllers/spree/content_controller.rb
spree_frontend-2.3.11 app/controllers/spree/content_controller.rb
spree_frontend-2.2.12 app/controllers/spree/content_controller.rb
spree_frontend-2.3.10 app/controllers/spree/content_controller.rb
spree_frontend-2.3.9 app/controllers/spree/content_controller.rb
spree_frontend-2.2.11 app/controllers/spree/content_controller.rb
spree_frontend-2.2.10 app/controllers/spree/content_controller.rb
spree_frontend-2.3.8 app/controllers/spree/content_controller.rb
spree_frontend-2.3.7 app/controllers/spree/content_controller.rb
spree_frontend-2.2.9 app/controllers/spree/content_controller.rb
spree_frontend-2.3.6 app/controllers/spree/content_controller.rb
spree_frontend-2.2.8 app/controllers/spree/content_controller.rb
spree_frontend-2.3.5 app/controllers/spree/content_controller.rb
spree_frontend-2.2.7 app/controllers/spree/content_controller.rb
spree_frontend-2.3.4 app/controllers/spree/content_controller.rb
spree_frontend-2.2.6 app/controllers/spree/content_controller.rb
spree_frontend-2.3.3 app/controllers/spree/content_controller.rb