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:
parent
8d691856ae
commit
d79e82c9dd
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue