diff options
author | Renan Gurgel <gurgel.renan@gmail.com> | 2017-10-24 10:19:29 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 10:19:29 -0300 |
commit | a4eed027411c7db1091d2fdc26135b67c9b985bd (patch) | |
tree | 5847477d384e7897617195e646ec66496d7dfaf3 /railties | |
parent | 363eec42e99716c896b1797f1fedc03bc30b841b (diff) | |
download | rails-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.rb | 2 |
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 |