Sha256: f9caad1d4be11e1ed12344fc34c6bcfeed9cdc4229f08acd067df7ede679ddea
Contents?: true
Size: 417 Bytes
Versions: 5
Compression:
Stored size: 417 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] } def show render :template => params[:path] end def cvv render "cvv", :layout => false end end
Version data entries
5 entries across 5 versions & 1 rubygems