Sha256: de4b23544cd576da436b33608fc9e6c2a8c9b10dd12d2b51b1531c5bdea401fe
Contents?: true
Size: 263 Bytes
Versions: 4
Compression:
Stored size: 263 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
common-content-0.0.4 | app/models/textile.rb |
common-content-0.0.3 | app/models/textile.rb |
common-content-0.0.2 | app/models/textile.rb |
common-content-0.0.1 | app/models/textile.rb |