Skip to content

Commit 5179076

Browse files
committed
Alias kill_cursors to close_query
1 parent fe1a930 commit 5179076

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/mongo/collection/view/iterable.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def each
5656
def close_query
5757
@cursor.send(:kill_cursors) if @cursor && !@cursor.closed?
5858
end
59+
alias :kill_cursors :close_query
5960

6061
private
6162

0 commit comments

Comments
 (0)