app/models/textile.rb in common-content-0.0.4 vs app/models/textile.rb in common-content-0.0.5
- old
+ new
@@ -1,16 +1,16 @@
-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
-
+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
\ No newline at end of file