Commit 252961250d5c9698f9e1f80e6db080960204a369
1 parent
b4c2a337
Exists in
master
and in
1 other branch
Rubocop: Rails 4: use *_before_action instead of *_before_filter
Showing
2 changed files
with
1 additions
and
8 deletions
Show diff stats
.rubocop_todo.yml
@@ -40,13 +40,6 @@ Performance/StringReplacement: | @@ -40,13 +40,6 @@ Performance/StringReplacement: | ||
40 | - 'app/models/notification_services/gtalk_service.rb' | 40 | - 'app/models/notification_services/gtalk_service.rb' |
41 | - 'lib/hoptoad/v2.rb' | 41 | - 'lib/hoptoad/v2.rb' |
42 | 42 | ||
43 | -# Offense count: 1 | ||
44 | -# Cop supports --auto-correct. | ||
45 | -# Configuration parameters: EnforcedStyle, SupportedStyles, Include. | ||
46 | -Rails/ActionFilter: | ||
47 | - Exclude: | ||
48 | - - 'app/controllers/notices_controller.rb' | ||
49 | - | ||
50 | # Offense count: 4 | 43 | # Offense count: 4 |
51 | # Cop supports --auto-correct. | 44 | # Cop supports --auto-correct. |
52 | # Configuration parameters: Include. | 45 | # Configuration parameters: Include. |
app/controllers/notices_controller.rb
@@ -3,7 +3,7 @@ class NoticesController < ApplicationController | @@ -3,7 +3,7 @@ class NoticesController < ApplicationController | ||
3 | class ParamsError < StandardError; end | 3 | class ParamsError < StandardError; end |
4 | 4 | ||
5 | skip_before_action :authenticate_user!, only: :create | 5 | skip_before_action :authenticate_user!, only: :create |
6 | - skip_before_filter :verify_authenticity_token, only: :create | 6 | + skip_before_action :verify_authenticity_token, only: :create |
7 | 7 | ||
8 | rescue_from ParamsError, :with => :bad_params | 8 | rescue_from ParamsError, :with => :bad_params |
9 | 9 |