aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/array_inquirer.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-15 02:43:13 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-15 02:44:03 +0900
commita3afd0538462aa49e5585c251c65f8de106f1c07 (patch)
tree927e91857c7e6645afe031d38763573cf38c187c /activesupport/lib/active_support/array_inquirer.rb
parentd5fbb04fab6f598b2ad5a4763672504fa81466af (diff)
downloadrails-a3afd0538462aa49e5585c251c65f8de106f1c07.tar.gz
rails-a3afd0538462aa49e5585c251c65f8de106f1c07.tar.bz2
rails-a3afd0538462aa49e5585c251c65f8de106f1c07.zip
Unused &block parameter
Diffstat (limited to 'activesupport/lib/active_support/array_inquirer.rb')
-rw-r--r--activesupport/lib/active_support/array_inquirer.rb2
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