-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 5.1.4
-
Component/s: None
-
None
-
Environment:MongoDB server v3.2.1
class Post include Mongoid::Document embeds_many :comments end class Comment include Mongoid::Document field :content, type: String embedded_in :post end
# query existing post post = Post.with(collection: 'posts_2016').first post.comments.build(content: '....') post.with(collection: 'posts_2016').save! # but save don't work,