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

Version Path
spree_frontend-3.0.7 app/controllers/spree/content_controller.rb
spree_frontend-3.0.6.1 app/controllers/spree/content_controller.rb
spree_frontend-3.0.6 app/controllers/spree/content_controller.rb
spree_frontend-3.0.5 app/controllers/spree/content_controller.rb
spree_frontend-3.0.4 app/controllers/spree/content_controller.rb
spree_frontend-2.4.10 app/controllers/spree/content_controller.rb
spree_frontend-3.0.3 app/controllers/spree/content_controller.rb
spree_frontend-2.4.9 app/controllers/spree/content_controller.rb
solidus_frontend-1.0.0.pre3 app/controllers/spree/content_controller.rb
solidus_frontend-1.0.0.pre2 app/controllers/spree/content_controller.rb
spree_frontend-3.0.2 app/controllers/spree/content_controller.rb
spree_frontend-2.4.8 app/controllers/spree/content_controller.rb
solidus_frontend-1.0.0.pre app/controllers/spree/content_controller.rb
spree_frontend-3.0.1 app/controllers/spree/content_controller.rb
spree_frontend-2.4.7 app/controllers/spree/content_controller.rb
spree_frontend-3.0.0 app/controllers/spree/content_controller.rb
spree_frontend-2.4.6 app/controllers/spree/content_controller.rb
spree_frontend-2.4.5 app/controllers/spree/content_controller.rb
spree_frontend-3.0.0.rc4 app/controllers/spree/content_controller.rb
spree_frontend-3.0.0.rc3 app/controllers/spree/content_controller.rb