We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Node#any_block_type?
1 parent 27c9a21 commit 428a452Copy full SHA for 428a452
lib/rubocop/cop/rails/pluck.rb
@@ -56,7 +56,7 @@ class Pluck < Base
56
minimum_target_rails_version 5.0
57
58
def_node_matcher :pluck_candidate?, <<~PATTERN
59
- ({block numblock} (call _ {:map :collect}) $_argument (send lvar :[] $_key))
+ (any_block (call _ {:map :collect}) $_argument (send lvar :[] $_key))
60
PATTERN
61
62
def on_block(node)
rubocop-rails.gemspec
@@ -36,5 +36,5 @@ Gem::Specification.new do |s|
36
# introduced in rack 1.1
37
s.add_dependency 'rack', '>= 1.1'
38
s.add_dependency 'rubocop', '>= 1.52.0', '< 2.0'
39
- s.add_dependency 'rubocop-ast', '>= 1.31.1', '< 2.0'
+ s.add_dependency 'rubocop-ast', '>= 1.38.0', '< 2.0'
40
end
0 commit comments