orbit-basic/vendor/plugins/NewBlog/app/models/comment.rb

7 lines
183 B
Ruby
Raw Normal View History

2011-11-18 08:43:14 +00:00
class Comment
include Mongoid::Document
include Mongoid::Timestamps
field :name, :type => String
field :body, :type => String
embedded_in :post, :inverse_of => :comments
end