Skip to content
Snippets Groups Projects
Verified Commit d79e82c9 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment