Return the noteable in Note#touch_noteable

This allows EE to re-use the object, making it easier to trigger
indexing of the noteable.
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册