lib/mongoid/clients/options.rb in mongoid-6.1.0 vs lib/mongoid/clients/options.rb in mongoid-6.1.1
- old
+ new
@@ -36,10 +36,10 @@
end
def mongo_client
persistence_context.client
end
-
+
def persistence_context
PersistenceContext.get(self) ||
PersistenceContext.get(self.class) ||
PersistenceContext.new(self.class)
end