Sha256: c875843f1918d9252ad9313bc92c79079deeb48b16dfe978ea5f4578e84e5e56

Contents?: true

Size: 546 Bytes

Versions: 10

Compression:

Stored size: 546 Bytes

Contents

class ContentController < Spree::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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/controllers/content_controller.rb
spree_core-0.70.6 app/controllers/content_controller.rb
spree_core-0.70.5 app/controllers/content_controller.rb
spree_core-0.70.4 app/controllers/content_controller.rb
spree_core-0.70.3 app/controllers/content_controller.rb
spree_core-0.70.2 app/controllers/content_controller.rb
spree_core-0.70.1 app/controllers/content_controller.rb
spree_core-0.70.0 app/controllers/content_controller.rb
spree_core-0.70.0.rc2 app/controllers/content_controller.rb
spree_core-0.70.RC1 app/controllers/content_controller.rb