summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-12-12 21:34:21 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2017-12-14 15:08:32 +0100
commit8aaf597e4973e0a536b159a45df069536eeb7796 (patch)
tree1f03b7545b6a7c64ec863babb1583f05c5b09af6
parentfb414e793e1aa09799caa7063a44587fe1a190c3 (diff)
downloadgitlab-ce-fix-throttled-update-for-10-3.tar.gz
Return the noteable in Note#touch_noteablefix-throttled-update-for-10-3
This allows EE to re-use the object, making it easier to trigger indexing of the noteable.
-rw-r--r--app/models/note.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index c4c2ab8e67d..02f9fd61e49 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -401,6 +401,9 @@ class Note < ActiveRecord::Base
end
noteable_object&.touch
+
+ # We return the noteable object so we can re-use it in EE for ElasticSearch.
+ noteable_object
end
def banzai_render_context(field)