Skip to content

Commit 51add67

Browse files
committed
Method can be private
1 parent 60481c0 commit 51add67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mongoid/touchable.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def __run_touch_callbacks_from_root
6868
run_callbacks(:touch)
6969
end
7070

71+
private
72+
7173
# Extract and remove the atomic updates for the touch operation(s)
7274
# from the currently enqueued atomic $set operations.
7375
#
@@ -76,6 +78,8 @@ def __run_touch_callbacks_from_root
7678
# @param [ Symbol ] field The optional field.
7779
#
7880
# @return [ Hash ] The field-value pairs to update atomically.
81+
#
82+
# @api private
7983
def __extract_touches_from_atomic_sets(field = nil)
8084
updates = atomic_updates['$set']
8185
return {} unless updates

0 commit comments

Comments
 (0)