demarches-normaliennes/app/models/champs/textarea_champ.rb
gregoirenovel 9e42190148 Remove the proxy value_for_export method
Overload for_export instead
2019-01-08 12:32:26 +01:00

5 lines
150 B
Ruby

class Champs::TextareaChamp < Champs::TextChamp
def for_export
value.present? ? ActionView::Base.full_sanitizer.sanitize(value) : nil
end
end