mongoid/mongoid-site — Issue #97: Accessor for embedded 1-1 is wrong
Author: tmaier
Created: 2011-11-15 21:59:56+00:00
State: open

There is an error on http://mongoid.org/docs/relations/embedded/1-1.html

```ruby
person.name = [ Name.new ]
```

This would race a `NoMethodError`

```terminal
NoMethodError:
undefined method `metadata' for #
````

It should be:

```ruby
person.name = Name.new
```