mongoid/mongoid — pull request #2268 by haihappen (2012-07-31 18:39:32+00:00)
Title: Allow passing hashes directly to localized fields.

Allows setting localized fields using mass-assignment:

```ruby
document.title = { en: 'English', de: 'Deutsch' }
```

I need this functionality the get following code – it reverts to a previous version, using `Mongoid::Versioning` – working:

```ruby
update_attributes(versions.last.versioned_attributes.except('version'))
```