Sha256: 2fa94aebbfaad80624029d5eaf16219ef0910db8b08583e6935ebf79750acc08
Contents?: true
Size: 333 Bytes
Versions: 18
Compression:
Stored size: 333 Bytes
Contents
require 'active_support/core_ext/string/output_safety' module HoboFields module Types class Text < String COLUMN_TYPE = :text def to_html(xmldoctype = true) ERB::Util.html_escape(self).gsub("\n", "<br#{xmldoctype ? ' /' : ''}>\n") end HoboFields.register_type(:text, self) end end end
Version data entries
18 entries across 18 versions & 1 rubygems