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)
322
322
#
323
323
# @param [ Mongo::Session ] session The session to save.
324
324
def set_session ( session )
325
- Thread . current [ :session ] = session
325
+ Thread . current [ "[mongoid] :session" ] = session
326
326
end
327
327
328
328
# Get the cached session for this thread.
@@ -332,7 +332,7 @@ def set_session(session)
332
332
#
333
333
# @return [ Mongo::Session | nil ] The session cached on this thread or nil.
334
334
def get_session
335
- Thread . current [ :session ]
335
+ Thread . current [ "[mongoid] :session" ]
336
336
end
337
337
338
338
# Clear the cached session for this thread.
@@ -344,7 +344,7 @@ def get_session
344
344
def clear_session
345
345
session = get_session
346
346
session . end_session if session
347
- Thread . current [ :session ] = nil
347
+ Thread . current [ "[mongoid] :session" ] = nil
348
348
end
349
349
end
350
350
end
You can’t perform that action at this time.
0 commit comments