Files
grecia/app/models/budget/phase/translation.rb
2019-02-13 11:44:56 +01:00

10 lines
235 B
Ruby

class Budget::Phase::Translation < Globalize::ActiveRecord::Translation
before_validation :sanitize_description
private
def sanitize_description
self.description = WYSIWYGSanitizer.new.sanitize(description)
end
end