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
|
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
|
||||||
|
|
Loading…
Reference in New Issue