diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-15 02:43:13 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-15 02:44:03 +0900 |
commit | a3afd0538462aa49e5585c251c65f8de106f1c07 (patch) | |
tree | 927e91857c7e6645afe031d38763573cf38c187c | |
parent | d5fbb04fab6f598b2ad5a4763672504fa81466af (diff) | |
download | rails-a3afd0538462aa49e5585c251c65f8de106f1c07.tar.gz rails-a3afd0538462aa49e5585c251c65f8de106f1c07.tar.bz2 rails-a3afd0538462aa49e5585c251c65f8de106f1c07.zip |
Unused &block parameter
-rw-r--r-- | activesupport/lib/active_support/array_inquirer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/array_inquirer.rb b/activesupport/lib/active_support/array_inquirer.rb index d364996e0b..befa1746c6 100644 --- a/activesupport/lib/active_support/array_inquirer.rb +++ b/activesupport/lib/active_support/array_inquirer.rb @@ -20,7 +20,7 @@ module ActiveSupport # variants.any?(:phone, :tablet) # => true # variants.any?('phone', 'desktop') # => true # variants.any?(:desktop, :watch) # => false - def any?(*candidates, &block) + def any?(*candidates) if candidates.none? super else |