lib/mongoid/relations/accessors.rb
# Yield to the block with autobuild functionality turned off.
#
# @example Execute without autobuild.
#   document.without_autobuild do
#     document.name
#   end
#
# @return [ Object ] The result of the yield.
#
# @since 3.0.0
Yield to the block with autobuild functionality turned off.
Yield to the block with autobuild functionality turned off .
def without_autobuild
        Threaded.begin_execution("without_autobuild")
        yield
      ensure
        Threaded.exit_execution("without_autobuild")
      end
def without_autobuild Threaded . begin_execution ( "without_autobuild" ) yield ensure Threaded . exit_execution ( "without_autobuild" ) end
Yield to the block with autobuild functionality turned off.
Yield to the block with autobuild functionality turned off .
The result of the yield.
The result of the yield .
 Object 
example
Execute without autobuild. document.without_autobuild do document.name end
Execute without autobuild . document . without_autobuild do document . name end
since
None