FIX: no way to remove site text

This commit is contained in:
Sam 2014-12-23 13:15:54 +11:00
parent f6f50ffc72
commit e959e7c9df
1 changed files with 4 additions and 0 deletions

View File

@ -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