Sha256: cffe41d6925a171a85e82c9800f71e687a21d35ec28ea132df293cf373f19ce1
Contents?: true
Size: 278 Bytes
Versions: 1
Compression:
Stored size: 278 Bytes
Contents
require 'RedCloth' class Textile < RedCloth::TextileDoc include Mongoid::Fields::Serializable attr_accessor :max def serialize(object) object.to_s end def deserialize(object) object = '' unless object RedCloth.new(object) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
common-content-0.0.5 | app/models/textile.rb |