Sha256: d6305ea9c9af2135a324e24bc6583c01b0c6df7282b9258adac933d14518756c
Contents?: true
Size: 321 Bytes
Versions: 55
Compression:
Stored size: 321 Bytes
Contents
module HoboFields module Types 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 end
Version data entries
55 entries across 55 versions & 1 rubygems