Sha256: 8f3b3f09af52b9d34427bc40121af8dd8c79f4b9fc39394ff9b82201882d517f

Contents?: true

Size: 548 Bytes

Versions: 13

Compression:

Stored size: 548 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 :template => params[:path] }
    end
  end

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

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/controllers/content_controller.rb
My-Commerce_core-1.1.0 app/controllers/content_controller.rb
My-Commerce_core-1.0.0 app/controllers/content_controller.rb
MyCommerceapi-1.0.0 core/app/controllers/content_controller.rb
MyCommerce-0.0.3 core/app/controllers/content_controller.rb
rfcommerce_core-0.0.3 app/controllers/content_controller.rb
spree_core-0.60.6 app/controllers/content_controller.rb
spree_core-0.60.5 app/controllers/content_controller.rb
spree_core-0.60.4 app/controllers/content_controller.rb
spree_core-0.60.3 app/controllers/content_controller.rb
spree_core-0.60.2 app/controllers/content_controller.rb
spree_core-0.60.1 app/controllers/content_controller.rb
spree_core-0.60.0 app/controllers/content_controller.rb