Return the noteable in Note#touch_noteable

This allows EE to re-use the object, making it easier to trigger
indexing of the noteable.
This commit is contained in:
Yorick Peterse 2017-12-12 21:34:21 +01:00
parent 8d691856ae
commit d79e82c9dd
No known key found for this signature in database
GPG key ID: EDD30D2BEB691AC9

View file

@ -401,6 +401,9 @@ class Note < ActiveRecord::Base
end end
noteable_object&.touch noteable_object&.touch
# We return the noteable object so we can re-use it in EE for ElasticSearch.
noteable_object
end end
def banzai_render_context(field) def banzai_render_context(field)