rails/rails — pull request #13784 by kuldeepaggarwal (2014-01-21 21:19:22+00:00)
Title: Add missing information for `id` field when used with `select`

As given in the example:

```ruby
person.pets.select(:name)
# => [
#,
#,
#
]
```
So calling on `person.pets.select(:name).first.id` will not raise:
```ruby
ActiveModel::MissingAttributeError: missing attribute: id
```