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.
1 parent a250bfa commit 7e21774Copy full SHA for 7e21774
lib/rubocop/cop/mixin/active_record_helper.rb
@@ -103,7 +103,7 @@ def polymorphic?(belongs_to)
103
end
104
105
def in_where?(node)
106
- send_node = node.each_ancestor(:send, :csend).first
+ send_node = node.each_ancestor(:call).first
107
return false unless send_node
108
109
return true if WHERE_METHODS.include?(send_node.method_name)
lib/rubocop/cop/rails/pluck.rb
@@ -60,7 +60,7 @@ class Pluck < Base
60
PATTERN
61
62
def on_block(node)
63
- return if node.each_ancestor(:block, :numblock).any?
+ return if node.each_ancestor(:any_block).any?
64
65
pluck_candidate?(node) do |argument, key|
66
next if key.regexp_type? || !use_one_block_argument?(argument)
0 commit comments