Sha256: 17981c56ec907ab347c50af3fd1500e4ca8f61afc7953d5b715c3ebdbb409eb7

Contents?: true

Size: 582 Bytes

Versions: 11

Compression:

Stored size: 582 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 :layout => false }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-1.2.5 app/controllers/spree/content_controller.rb
spree_core-1.1.6 app/controllers/spree/content_controller.rb
spree_core-1.1.5 app/controllers/spree/content_controller.rb
spree_core-1.2.4 app/controllers/spree/content_controller.rb
spree_core-1.2.3 app/controllers/spree/content_controller.rb
spree_core-1.2.2 app/controllers/spree/content_controller.rb
spree_core-1.1.4 app/controllers/spree/content_controller.rb
spree_core-1.2.0 app/controllers/spree/content_controller.rb
spree_core-1.2.0.rc2 app/controllers/spree/content_controller.rb
spree_core-1.2.0.rc1 app/controllers/spree/content_controller.rb
spree_core-1.1.3 app/controllers/spree/content_controller.rb