mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 19:14: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
|
SiteText.text_for_cache.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
|
after_destroy do
|
||||||
|
SiteText.text_for_cache.clear
|
||||||
|
end
|
||||||
|
|
||||||
def self.formats
|
def self.formats
|
||||||
@formats ||= Enum.new(:plain, :markdown, :html, :css)
|
@formats ||= Enum.new(:plain, :markdown, :html, :css)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user