Do html cleanup directly on content fields too (not only on finished article).

This commit is contained in:
Martin Edenhofer 2017-07-20 15:58:03 +02:00
parent d8ad2b1b2f
commit 4b6496c545
2 changed files with 7 additions and 0 deletions

View file

@ -2,7 +2,11 @@
class Signature < ApplicationModel
include ChecksLatestChangeObserved
include ChecksHtmlSanitized
has_many :groups, after_add: :cache_update, after_remove: :cache_update
validates :name, presence: true
sanitized_html :body
end

View file

@ -2,10 +2,13 @@
class TextModule < ApplicationModel
include ChecksClientNotification
include ChecksHtmlSanitized
validates :name, presence: true
validates :content, presence: true
sanitized_html :content
=begin
load text modules from online