From feceb543fd6df602c8c117247488e415ef89b78a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 7 Dec 2019 20:48:38 -0600 Subject: make sure filter cache gets wiped when a filter is deleted --- app/models/custom_filter.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/models') diff --git a/app/models/custom_filter.rb b/app/models/custom_filter.rb index 67d1a0bea..e5e0d1554 100644 --- a/app/models/custom_filter.rb +++ b/app/models/custom_filter.rb @@ -19,8 +19,10 @@ class CustomFilter < ApplicationRecord validates :phrase, presence: true - after_save :update_feeds after_save :remove_cache + after_save :update_feeds + + after_destroy :remove_cache private -- cgit