Sha256: 308d84365c87e8bab1fed4dd912a599ffe61bfb76f2b05fcd5b70dc46590176a
Contents?: true
Size: 297 Bytes
Versions: 24
Compression:
Stored size: 297 Bytes
Contents
module HoboFields class HtmlString < RawHtmlString include SanitizeHtml def self.declared(model, name, options) model.before_save { |record| record[name] = HoboFields::SanitizeHtml.sanitize(record[name]) } end HoboFields.register_type(:html, self) end end
Version data entries
24 entries across 24 versions & 1 rubygems