Sha256: 2736f8be8d01b2afa6ab59f6541820f9f8dc3d21bd998322f8f843372396544d
Contents?: true
Size: 311 Bytes
Versions: 5
Compression:
Stored size: 311 Bytes
Contents
module Coalla module Sanitized def sanitize_html(attribute, config = Sanitize::Config::DEFAULT) before_save do sanitize_attr = Sanitize.fragment(send(attribute), config) send("#{attribute}=", sanitize_attr) end end end end ActiveRecord::Base.extend Coalla::Sanitized
Version data entries
5 entries across 5 versions & 1 rubygems