module Mongoid::Contextual
Public Instance Methods
Source
# File lib/mongoid/contextual.rb, line 37 def context @context ||= create_context end
Private Instance Methods
Source
# File lib/mongoid/contextual.rb, line 54 def create_context return None.new(self) if empty_and_chainable? embedded ? Memory.new(self) : Mongo.new(self) end