lib/mongo/collection/view/readable.rb in mongo-2.6.4 vs lib/mongo/collection/view/readable.rb in mongo-2.7.0.rc0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2014-2018 MongoDB, Inc.
+# Copyright (C) 2014-2019 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
@@ -14,11 +14,11 @@
module Mongo
class Collection
class View
- # Defines read related behaviour for collection view.
+ # Defines read related behavior for collection view.
#
# @since 2.0.0
module Readable
# The query modifier constant.
@@ -543,10 +543,10 @@
rp = if options[:session] && options[:session].in_transaction?
options[:session].txn_read_preference || collection.client.read_preference
else
@read_preference ||= (options[:read] || collection.read_preference)
end
- Mongo::Lint.validate_underscore_read_preference(rp)
+ Lint.validate_underscore_read_preference(rp)
rp
end
def server_selector
if options[:session] && options[:session].in_transaction?