From e959e7c9dfb1b963abed51a89a8e7c3f70cede3a Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 23 Dec 2014 13:15:54 +1100 Subject: [PATCH] FIX: no way to remove site text --- app/models/site_text.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/site_text.rb b/app/models/site_text.rb index 3c481cfcad3..6046bc50237 100644 --- a/app/models/site_text.rb +++ b/app/models/site_text.rb @@ -13,6 +13,10 @@ class SiteText < ActiveRecord::Base SiteText.text_for_cache.clear end + after_destroy do + SiteText.text_for_cache.clear + end + def self.formats @formats ||= Enum.new(:plain, :markdown, :html, :css) end