Sha256: 283b4ebdcf9bc68786e98f1dae58bcd1686d50eec68be00d7b9f0b7b8c9bf08a
Contents?: true
Size: 590 Bytes
Versions: 11
Compression:
Stored size: 590 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 'cvv', :layout => false } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems