change before_filter to before_action
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user