app/controllers/spree/content_controller.rb in spree_frontend-3.0.7 vs app/controllers/spree/content_controller.rb in spree_frontend-3.0.8
- old
+ new
@@ -1,8 +1,8 @@
module Spree
class ContentController < Spree::StoreController
# Don't serve local files or static assets
- before_filter { render_404 if params[:path] =~ /(\.|\\)/ }
+ before_action { render_404 if params[:path] =~ /(\.|\\)/ }
after_action :fire_visited_path, only: :show
rescue_from ActionView::MissingTemplate, :with => :render_404
respond_to :html