Skip to content

Commit 9ce4d44

Browse files
committed
Explictly take a block in Arel add_bind
Fix: rails#51926 This prevent a false positive warning for unused blocks on Ruby 3.4-dev.
1 parent 407031f commit 9ce4d44

File tree

1 file changed

+1
-1
lines changed
  • activerecord/lib/arel/collectors

1 file changed

+1
-1
lines changed

activerecord/lib/arel/collectors/bind.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def <<(str)
1313
self
1414
end
1515

16-
def add_bind(bind)
16+
def add_bind(bind, &)
1717
@binds << bind
1818
self
1919
end

0 commit comments

Comments
 (0)