mongoid/mongoid — Issue #1795: Versioning with Embedded Documents
Author: michaeltrimm
Created: 2012-03-07 03:18:54+00:00
State: open

I have two objects

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

embeds_many :sections

field :name, type: String, default: "Document"

end
```
and

```ruby
class Section
include Mongoid::Document
include Mongoid::Versioning
embedded_in :document

field :section_title, type: String
field :section_value, type: String
field :section_featured, type: Boolean
end
```

How do I get versioning to work so that when I update a field inside the embedded "sections" has fields that are updated? I basically want to be able to create a dummy instance of Section and update the existing data with the new dummy data.