Browse Source

Remove unused argument

Maarten van den Berg 6 years ago
parent
commit
7eb073f6bf
2 changed files with 1 additions and 15 deletions
  1. 0 14
      .rubocop.yml
  2. 1 1
      app/helpers/application_helper.rb

+ 0 - 14
.rubocop.yml

23
   Exclude:
23
   Exclude:
24
     - 'app/controllers/api_controller.rb'
24
     - 'app/controllers/api_controller.rb'
25
 
25
 
26
-# Offense count: 2
27
-# Cop supports --auto-correct.
28
-# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
29
-Lint/UnusedBlockArgument:
30
-  Exclude:
31
-    - 'db/seeds.rb'
32
-
33
-# Offense count: 1
34
-# Cop supports --auto-correct.
35
-# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
36
-Lint/UnusedMethodArgument:
37
-  Exclude:
38
-    - 'app/helpers/application_helper.rb'
39
-
40
 # Offense count: 30
26
 # Offense count: 30
41
 Metrics/AbcSize:
27
 Metrics/AbcSize:
42
   Max: 71
28
   Max: 71

+ 1 - 1
app/helpers/application_helper.rb

1
 module ApplicationHelper
1
 module ApplicationHelper
2
-  def flash_message(category, message, **pairs)
2
+  def flash_message(category, message)
3
     flash[:alerts] ||= {}
3
     flash[:alerts] ||= {}
4
     flash[:alerts][category] ||= []
4
     flash[:alerts][category] ||= []
5
     flash[:alerts][category] << message
5
     flash[:alerts][category] << message