This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/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