@@ -93,7 +93,7 @@ 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 <tt>#count</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
97
97
def async_count ( column_name = nil )
98
98
async . count ( column_name )
99
99
end
@@ -106,7 +106,7 @@ def average(column_name)
106
106
calculate ( :average , column_name )
107
107
end
108
108
109
- # Same as <tt>#average</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
109
+ # Same as <tt>#average</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
110
110
def async_average ( column_name )
111
111
async . average ( column_name )
112
112
end
@@ -120,7 +120,7 @@ def minimum(column_name)
120
120
calculate ( :minimum , column_name )
121
121
end
122
122
123
- # Same as <tt>#minimum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
123
+ # Same as <tt>#minimum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
124
124
def async_minimum ( column_name )
125
125
async . minimum ( column_name )
126
126
end
@@ -134,7 +134,7 @@ def maximum(column_name)
134
134
calculate ( :maximum , column_name )
135
135
end
136
136
137
- # Same as <tt>#maximum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
137
+ # Same as <tt>#maximum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
138
138
def async_maximum ( column_name )
139
139
async . maximum ( column_name )
140
140
end
@@ -152,7 +152,7 @@ def sum(initial_value_or_column = 0, &block)
152
152
end
153
153
end
154
154
155
- # Same as <tt>#sum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
155
+ # Same as <tt>#sum</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
156
156
def async_sum ( identity_or_column = nil )
157
157
async . sum ( identity_or_column )
158
158
end
@@ -287,7 +287,7 @@ def pluck(*column_names)
287
287
end
288
288
end
289
289
290
- # Same as <tt>#pluck</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
290
+ # Same as <tt>#pluck</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
291
291
def async_pluck ( *column_names )
292
292
async . pluck ( *column_names )
293
293
end
@@ -315,7 +315,7 @@ def pick(*column_names)
315
315
limit ( 1 ) . pluck ( *column_names ) . then ( &:first )
316
316
end
317
317
318
- # Same as <tt>#pick</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
318
+ # Same as <tt>#pick</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
319
319
def async_pick ( *column_names )
320
320
async . pick ( *column_names )
321
321
end
@@ -358,7 +358,7 @@ def ids
358
358
result . then { |result | type_cast_pluck_values ( result , columns ) }
359
359
end
360
360
361
- # Same as <tt>#ids</tt> but perform the query asynchronously and returns an ActiveRecord::Promise
361
+ # Same as <tt>#ids</tt> but perform the query asynchronously and returns an ActiveRecord::Promise.
362
362
def async_ids
363
363
async . ids
364
364
end
0 commit comments