aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRenan Gurgel <gurgel.renan@gmail.com>2017-10-24 10:19:29 -0300
committerGitHub <noreply@github.com>2017-10-24 10:19:29 -0300
commita4eed027411c7db1091d2fdc26135b67c9b985bd (patch)
tree5847477d384e7897617195e646ec66496d7dfaf3 /railties
parent363eec42e99716c896b1797f1fedc03bc30b841b (diff)
downloadrails-a4eed027411c7db1091d2fdc26135b67c9b985bd.tar.gz
rails-a4eed027411c7db1091d2fdc26135b67c9b985bd.tar.bz2
rails-a4eed027411c7db1091d2fdc26135b67c9b985bd.zip
add _ for unused last arg
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/plugin/plugin_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
index 65a124b0b8..d9ca4712d0 100644
--- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
+++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb
@@ -92,7 +92,7 @@ task default: :test
]
def generate_test_dummy(force = false)
- opts = (options.dup || {}).keep_if { |k, | PASSTHROUGH_OPTIONS.map(&:to_s).include?(k) }
+ opts = (options.dup || {}).keep_if { |k, _| PASSTHROUGH_OPTIONS.map(&:to_s).include?(k) }
opts[:force] = force
opts[:skip_bundle] = true
opts[:skip_listen] = true