diff options
author | mhasbini <mohammad.hasbini@gmail.com> | 2017-04-11 15:20:25 +0300 |
---|---|---|
committer | mhasbini <mohammad.hasbini@gmail.com> | 2017-04-11 15:20:25 +0300 |
commit | f1f9578f1c95ca6fb60d45b60ace42638980adb5 (patch) | |
tree | 14b37f0793dfc145d9ec4bd594d3237283bcadda /app/models/note.rb | |
parent | 9c576cc7e9414e64b4aac0544615e7d5e92c3558 (diff) |
Fix issue's note cache expiration after delete
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 1 |
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 |