Move NewBlog to built_in_modules and delete "vendor/templates"
This commit is contained in:
1 parent
95c40d2e53
commit
e7c9816139
87 files changed
+524
-3
No files matched your search
Whitespace-only changes.
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user