File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ def validations_for(klass)
322322 #
323323 # @param [ Mongo::Session ] session The session to save.
324324 def set_session ( session )
325- Thread . current [ :session ] = session
325+ Thread . current [ "[mongoid] :session" ] = session
326326 end
327327
328328 # Get the cached session for this thread.
@@ -332,7 +332,7 @@ def set_session(session)
332332 #
333333 # @return [ Mongo::Session | nil ] The session cached on this thread or nil.
334334 def get_session
335- Thread . current [ :session ]
335+ Thread . current [ "[mongoid] :session" ]
336336 end
337337
338338 # Clear the cached session for this thread.
@@ -344,7 +344,7 @@ def get_session
344344 def clear_session
345345 session = get_session
346346 session . end_session if session
347- Thread . current [ :session ] = nil
347+ Thread . current [ "[mongoid] :session" ] = nil
348348 end
349349 end
350350end
You can’t perform that action at this time.
0 commit comments