@@ -93,7 +93,8 @@ def count(column_name = nil)
93
93
end
94
94
end
95
95
96
- # Same as <tt>#count</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
96
+ # Same as #count, but performs the query asynchronously and returns an
97
+ # ActiveRecord::Promise.
97
98
def async_count ( column_name = nil )
98
99
async . count ( column_name )
99
100
end
@@ -106,7 +107,8 @@ def average(column_name)
106
107
calculate ( :average , column_name )
107
108
end
108
109
109
- # Same as <tt>#average</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
110
+ # Same as #average, but performs the query asynchronously and returns an
111
+ # ActiveRecord::Promise.
110
112
def async_average ( column_name )
111
113
async . average ( column_name )
112
114
end
@@ -120,7 +122,8 @@ def minimum(column_name)
120
122
calculate ( :minimum , column_name )
121
123
end
122
124
123
- # Same as <tt>#minimum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
125
+ # Same as #minimum, but performs the query asynchronously and returns an
126
+ # ActiveRecord::Promise.
124
127
def async_minimum ( column_name )
125
128
async . minimum ( column_name )
126
129
end
@@ -134,7 +137,8 @@ def maximum(column_name)
134
137
calculate ( :maximum , column_name )
135
138
end
136
139
137
- # Same as <tt>#maximum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
140
+ # Same as #maximum, but performs the query asynchronously and returns an
141
+ # ActiveRecord::Promise.
138
142
def async_maximum ( column_name )
139
143
async . maximum ( column_name )
140
144
end
@@ -152,7 +156,8 @@ def sum(initial_value_or_column = 0, &block)
152
156
end
153
157
end
154
158
155
- # Same as <tt>#sum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
159
+ # Same as #sum, but performs the query asynchronously and returns an
160
+ # ActiveRecord::Promise.
156
161
def async_sum ( identity_or_column = nil )
157
162
async . sum ( identity_or_column )
158
163
end
@@ -287,7 +292,8 @@ def pluck(*column_names)
287
292
end
288
293
end
289
294
290
- # Same as <tt>#pluck</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
295
+ # Same as #pluck, but performs the query asynchronously and returns an
296
+ # ActiveRecord::Promise.
291
297
def async_pluck ( *column_names )
292
298
async . pluck ( *column_names )
293
299
end
@@ -315,7 +321,8 @@ def pick(*column_names)
315
321
limit ( 1 ) . pluck ( *column_names ) . then ( &:first )
316
322
end
317
323
318
- # Same as <tt>#pick</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
324
+ # Same as #pick, but performs the query asynchronously and returns an
325
+ # ActiveRecord::Promise.
319
326
def async_pick ( *column_names )
320
327
async . pick ( *column_names )
321
328
end
@@ -358,7 +365,8 @@ def ids
358
365
result . then { |result | type_cast_pluck_values ( result , columns ) }
359
366
end
360
367
361
- # Same as <tt>#ids</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
368
+ # Same as #ids, but performs the query asynchronously and returns an
369
+ # ActiveRecord::Promise.
362
370
def async_ids
363
371
async . ids
364
372
end
0 commit comments