mongoid/mongoid — Issue #1595: Versioning with embeds_many 
Author: anoras
Created: 2012-01-15 01:10:03+00:00
State: open

With the model:

```ruby
class Parent
include ::Mongoid::Document
include ::Mongoid::Versioning

# A bunch of fields

embeds_many :children, class_name: "Child"
accepts_nested_attributes_for :children
end

class Child
include ::Mongoid::Document

field :text, type: String

embedded_in :parent
end
````

And when I do:

````ruby
p = Parent.find(existing_id)
p.children.first.update_attributes(text: "A different text than before")
p.save!
````

I'm only getting two versions of the Parent model in the database regardless of how many times I change attributes of embedded models. What am I missing here?