change before_filter to before_action
This commit is contained in:
@@ -8,7 +8,7 @@ gemspec
|
|||||||
gem "rails", " ~> 4.2.3"
|
gem "rails", " ~> 4.2.3"
|
||||||
group :assets do
|
group :assets do
|
||||||
gem 'sass-rails' #, ' ~> 5.0.0'
|
gem 'sass-rails' #, ' ~> 5.0.0'
|
||||||
gem 'bourbon'
|
gem 'bourbon', '~> 4.3.1'
|
||||||
gem 'coffee-script'
|
gem 'coffee-script'
|
||||||
#gem 'therubyracer', :platforms => :ruby
|
#gem 'therubyracer', :platforms => :ruby
|
||||||
#gem 'less-rails'
|
#gem 'less-rails'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
module Cmtool
|
module Cmtool
|
||||||
class ApplicationController < ::ApplicationController
|
class ApplicationController < ::ApplicationController
|
||||||
include Cmtool::ControllerGlue
|
include Cmtool::ControllerGlue
|
||||||
before_filter :authorize_user, :check_environment, :set_locale
|
before_action :authorize_user, :check_environment, :set_locale
|
||||||
layout 'cmtool/application'
|
layout 'cmtool/application'
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module Cmtool
|
module Cmtool
|
||||||
class Cmtool::ContactFormsController < Cmtool::ApplicationController
|
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
|
||||||
# GET /contact_forms.xml
|
# GET /contact_forms.xml
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module Cmtool
|
module Cmtool
|
||||||
class Cmtool::NewsletterSubscriptionsController < Cmtool::ApplicationController
|
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
|
||||||
# GET /newsletter_subscriptions.xml
|
# GET /newsletter_subscriptions.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user