From a3afd0538462aa49e5585c251c65f8de106f1c07 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sun, 15 Jan 2017 02:43:13 +0900 Subject: Unused &block parameter --- activesupport/lib/active_support/array_inquirer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') 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 -- cgit v1.2.3