Sha256: 460b2afdabfbe103739374905ad4a7c3b3b0f35815222f71fd9288d5f7941016

Contents?: true

Size: 590 Bytes

Versions: 9

Compression:

Stored size: 590 Bytes

Contents

module Spree
  class ContentController < Spree::StoreController
    # Don't serve local files or static assets
    before_filter { render_404 if params[:path] =~ /(\.|\\)/ }

    rescue_from ActionView::MissingTemplate, :with => :render_404
    caches_page :show, :index, :if => Proc.new { Spree::Config[:cache_static_content] }

    respond_to :html

    def show
      respond_with do |format|
        format.html { render :action => params[:path] }
      end
    end

    def cvv
      respond_with do |format|
        format.html { render :layout => false }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/controllers/spree/content_controller.rb
spree_core-1.3.4 app/controllers/spree/content_controller.rb
spree_core-1.3.3 app/controllers/spree/content_controller.rb
spree_core-1.3.2 app/controllers/spree/content_controller.rb
spree_core-1.3.1 app/controllers/spree/content_controller.rb
spree_core-1.3.0 app/controllers/spree/content_controller.rb
spree_core-1.3.0.rc2 app/controllers/spree/content_controller.rb
dup_spree_core-1.3.0.rc1 app/controllers/spree/content_controller.rb
spree_core-1.3.0.rc1 app/controllers/spree/content_controller.rb