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 58c62cb commit d5ad647Copy full SHA for d5ad647
lib/rubocop/cop/rails/reversible_migration.rb
@@ -307,7 +307,7 @@ def within_change_method?(node)
307
308
def within_reversible_or_up_only_block?(node)
309
node.each_ancestor(:block).any? do |ancestor|
310
- (ancestor.block_type? && ancestor.send_node.method?(:reversible)) || ancestor.send_node.method?(:up_only)
+ (ancestor.block_type? && ancestor.method?(:reversible)) || ancestor.method?(:up_only)
311
end
312
313
0 commit comments