change before_filter to before_action

This commit is contained in:
2019-12-29 08:00:52 -05:00
parent 3caf808e22
commit 4969be3e76
4 changed files with 4 additions and 4 deletions
@@ -1,7 +1,7 @@
module Cmtool
class ApplicationController < ::ApplicationController
include Cmtool::ControllerGlue
before_filter :authorize_user, :check_environment, :set_locale
before_action :authorize_user, :check_environment, :set_locale
layout 'cmtool/application'
private
@@ -1,6 +1,6 @@
module Cmtool
class Cmtool::ContactFormsController < Cmtool::ApplicationController
skip_before_filter :authenticate_user!, :authorize_user, only: :add
skip_before_action :authenticate_user!, :authorize_user, only: :add
# GET /contact_forms
# GET /contact_forms.xml
@@ -1,6 +1,6 @@
module Cmtool
class Cmtool::NewsletterSubscriptionsController < Cmtool::ApplicationController
skip_before_filter :authenticate_user!, :authorize_user, only: :add
skip_before_action :authenticate_user!, :authorize_user, only: :add
# GET /newsletter_subscriptions
# GET /newsletter_subscriptions.xml