Rename all before_filter to before_action, it's the same function with a new name

This commit is contained in:
Luis Ramos
2020-06-22 13:11:57 +01:00
parent 46a1c1cf26
commit 8a61257547
56 changed files with 154 additions and 154 deletions

View File

@@ -4,8 +4,8 @@ require_dependency 'spree/authentication_helpers'
class ApplicationController < ActionController::Base
protect_from_forgery
prepend_before_filter :restrict_iframes
before_filter :set_cache_headers # prevent cart emptying via cache when using back button #1213
prepend_before_action :restrict_iframes
before_action :set_cache_headers # prevent cart emptying via cache when using back button #1213
include EnterprisesHelper
include Spree::AuthenticationHelpers