Keep method for not yet globalizable models

Maintain the method for models that are still translatable. This help
me to pass the CI build. In later PR's this method will be eliminated
as no one will invoke it.
This commit is contained in:
Senén Rodero Rodríguez
2019-01-25 13:27:51 +01:00
committed by Julian Herrero
parent 0b3a3b97f7
commit aa3e8c8458

View File

@@ -4,6 +4,12 @@ module Sanitizable
included do
before_validation :sanitize_description
before_validation :sanitize_tag_list
unless included_modules.include? Globalizable
def description
super.try :html_safe
end
end
end
protected