lib/mongoid/touchable.rb in mongoid-9.0.2 vs lib/mongoid/touchable.rb in mongoid-9.0.3

- old
+ new

@@ -193,10 +193,10 @@ # suppression statuses for different classes. # # @return [ Hash ] The hash that contains touch callback suppression # statuses def touch_callback_statuses - Thread.current[SUPPRESS_TOUCH_CALLBACKS_KEY] ||= {} + Threaded.get(SUPPRESS_TOUCH_CALLBACKS_KEY) { {} } end # Define the method that will get called for touching belongs_to # associations. #