mongoid/mongoid — pull request #3683 by pcreux (2014-06-05 21:50:43+00:00)
Title: Fix serialize models with subset of attributes

The following code raises an `ActiveModel::MissingAttributeError`:
```
Person.only("_id", "username").first.as_json
```

This PR fixes it.