Sha256: 1d31cef2e0e5e9c576aafcc8e65605e676d7e9ff1770cd025da84a623a3d80a6
Contents?: true
Size: 724 Bytes
Versions: 13
Compression:
Stored size: 724 Bytes
Contents
module Spree class ContentController < Spree::StoreController # Don't serve local files or static assets before_filter { render_404 if params[:path] =~ /(\.|\\)/ } after_filter :fire_visited_path, :only => :show after_filter :fire_visited_action, :except => :show rescue_from ActionView::MissingTemplate, :with => :render_404 respond_to :html def show render :action => params[:path] end def cvv render :layout => false end def fire_visited_path fire_event('spree.content.visited', :path => "content/#{params[:path]}") end def fire_visited_action fire_event('spree.content.visited', :path => "content/#{params[:action]}") end end end
Version data entries
13 entries across 13 versions & 1 rubygems