change before_filter to before_action
This commit is contained in:
@@ -8,7 +8,7 @@ gemspec
|
||||
gem "rails", " ~> 4.2.3"
|
||||
group :assets do
|
||||
gem 'sass-rails' #, ' ~> 5.0.0'
|
||||
gem 'bourbon'
|
||||
gem 'bourbon', '~> 4.3.1'
|
||||
gem 'coffee-script'
|
||||
#gem 'therubyracer', :platforms => :ruby
|
||||
#gem 'less-rails'
|
||||
|
||||
@@ -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