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