Skip to content

Commit 516af61

Browse files
Auto-link non-async counterpart methods [ci-skip]
1 parent 81a2384 commit 516af61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/querying.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def find_by_sql(sql, binds = [], preparable: nil, allow_retry: false, &block)
5555
_load_from_sql(result, &block)
5656
end
5757

58-
# Same as <tt>#find_by_sql</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
58+
# Same as #find_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise.
5959
def async_find_by_sql(sql, binds = [], preparable: nil, allow_retry: false, &block)
6060
with_connection do |c|
6161
_query_by_sql(c, sql, binds, preparable: preparable, allow_retry: allow_retry, async: true)
@@ -112,7 +112,7 @@ def count_by_sql(sql)
112112
end
113113
end
114114

115-
# Same as <tt>#count_by_sql</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
115+
# Same as #count_by_sql but perform the query asynchronously and returns an ActiveRecord::Promise.
116116
def async_count_by_sql(sql)
117117
with_connection do |c|
118118
c.select_value(sanitize_sql(sql), "#{name} Count", async: true).then(&:to_i)

0 commit comments

Comments
 (0)