Skip to content

Commit a4c0a84

Browse files

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

activerecord/lib/active_record/statement_cache.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def <<(str)
7474
self
7575
end
7676

77-
def add_bind(obj)
77+
def add_bind(obj, &_)
7878
@binds << obj
7979
@parts << Substitute.new
8080
self
8181
end
8282

83-
def add_binds(binds, proc_for_binds = nil)
83+
def add_binds(binds, proc_for_binds = nil, &_)
8484
@binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds
8585
binds.size.times do |i|
8686
@parts << ", " unless i == 0

activerecord/lib/arel/collectors/bind.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def add_bind(bind, &)
1818
self
1919
end
2020

21-
def add_binds(binds, proc_for_binds = nil)
21+
def add_binds(binds, proc_for_binds = nil, &_)
2222
@binds.concat proc_for_binds ? binds.map(&proc_for_binds) : binds
2323
self
2424
end

activerecord/lib/arel/collectors/sql_string.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(*)
1212
@bind_index = 1
1313
end
1414

15-
def add_bind(bind)
15+
def add_bind(bind, &_)
1616
self << yield(@bind_index)
1717
@bind_index += 1
1818
self

activerecord/lib/arel/collectors/substitute_binds.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def <<(str)
1515
self
1616
end
1717

18-
def add_bind(bind)
18+
def add_bind(bind, &_)
1919
bind = bind.value_for_database if bind.respond_to?(:value_for_database)
2020
self << quoter.quote(bind)
2121
end
2222

23-
def add_binds(binds, proc_for_binds = nil)
23+
def add_binds(binds, proc_for_binds = nil, &_)
2424
self << binds.map { |bind| quoter.quote(bind) }.join(", ")
2525
end
2626

activerecord/lib/arel/nodes/binary.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def eql?(other)
3030
end
3131

3232
module FetchAttribute
33-
def fetch_attribute
33+
def fetch_attribute(&)
3434
if left.is_a?(Arel::Attributes::Attribute)
3535
yield left
3636
elsif right.is_a?(Arel::Attributes::Attribute)

activerecord/lib/arel/nodes/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def to_sql(engine = Table.engine)
152152
end
153153
end
154154

155-
def fetch_attribute
155+
def fetch_attribute(&_)
156156
end
157157

158158
def equality?; false; end

activerecord/lib/arel/nodes/sql_literal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def encode_with(coder)
1919
coder.scalar = self.to_s
2020
end
2121

22-
def fetch_attribute
22+
def fetch_attribute(&_)
2323
end
2424

2525
def +(other)

0 commit comments

Comments
 (0)