Commit d79e82c9 authored by Yorick Peterse's avatar Yorick Peterse

Return the noteable in Note#touch_noteable

This allows EE to re-use the object, making it easier to trigger
indexing of the noteable.
parent 8d691856
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment