mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 21:54:46 +08:00
FIX: no way to remove site text
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user