Move NewBlog to built_in_modules and delete "vendor/templates"

This commit is contained in:
chris2tof committed 2011-12-22 01:38:27 +08:00
1 parent 95c40d2e53
commit e7c9816139
87 files changed
+524 -3

No files matched your search

Whitespace-only changes.
+7
View File
@@ -0,0 +1,7 @@
class Comment
include Mongoid::Document
include Mongoid::Timestamps
field :name, :type => String
field :body, :type => String
embedded_in :post, :inverse_of => :comments
end
+8
View File
@@ -0,0 +1,8 @@
class Post
include Mongoid::Document
include Mongoid::Timestamps
field :title, :type => String
field :body, :type => String
embeds_many :comments
validates_presence_of :title, :body
end