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

7 lines
183 B
Ruby
Raw Normal View History

2011-08-25 11:02:20 +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