mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 17:08:30 +08:00
FIX: no way to remove site text
This commit is contained in:
parent
f6f50ffc72
commit
e959e7c9df
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user