Sha256: e763ea10d59140b7a94cca9ee873819e18ade272510979bd63804f4f27423d19

Contents?: true

Size: 589 Bytes

Versions: 6

Compression:

Stored size: 589 Bytes

Contents

module Spree
  class ContentController < BaseController
    # 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 'cvv', :layout => false }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-1.1.2 app/controllers/spree/content_controller.rb
spree_core-1.1.2.rc1 app/controllers/spree/content_controller.rb
spree_core-1.1.1 app/controllers/spree/content_controller.rb
spree_core-1.1.0 app/controllers/spree/content_controller.rb
spree_core-1.1.0.rc2 app/controllers/spree/content_controller.rb
spree_core-1.1.0.rc1 app/controllers/spree/content_controller.rb