summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormhasbini <mohammad.hasbini@gmail.com>2017-04-11 15:20:25 +0300
committermhasbini <mohammad.hasbini@gmail.com>2017-04-11 15:20:25 +0300
commitf1f9578f1c95ca6fb60d45b60ace42638980adb5 (patch)
tree14b37f0793dfc145d9ec4bd594d3237283bcadda /app
parent9c576cc7e9414e64b4aac0544615e7d5e92c3558 (diff)
downloadgitlab-ce-f1f9578f1c95ca6fb60d45b60ace42638980adb5.tar.gz
Fix issue's note cache expiration after delete
Diffstat (limited to 'app')
-rw-r--r--app/models/note.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 1ea7b946061..834507feccc 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -96,6 +96,7 @@ class Note < ActiveRecord::Base
before_validation :set_discussion_id, on: :create
after_save :keep_around_commit, unless: :for_personal_snippet?
after_save :expire_etag_cache
+ after_destroy :expire_etag_cache
class << self
def model_name