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:
committed by
Julian Herrero
parent
0b3a3b97f7
commit
aa3e8c8458
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user