We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60481c0 commit 51add67Copy full SHA for 51add67
lib/mongoid/touchable.rb
@@ -68,6 +68,8 @@ def __run_touch_callbacks_from_root
68
run_callbacks(:touch)
69
end
70
71
+ private
72
+
73
# Extract and remove the atomic updates for the touch operation(s)
74
# from the currently enqueued atomic $set operations.
75
#
@@ -76,6 +78,8 @@ def __run_touch_callbacks_from_root
76
78
# @param [ Symbol ] field The optional field.
77
79
80
# @return [ Hash ] The field-value pairs to update atomically.
81
+ #
82
+ # @api private
83
def __extract_touches_from_atomic_sets(field = nil)
84
updates = atomic_updates['$set']
85
return {} unless updates
0 commit comments