Permalink
Browse files

Merge pull request #13784 from kuldeepaggarwal/fix-doc-collection-proxy

Add missing information for `id` field when used with `select` [ci skip]
  • Loading branch information...
2 parents b0a8ef1 + 7e25da9 commit c6ecfc1668d6e2c69d360ed376b9e3f77ad72e83 @rafaelfranca rafaelfranca committed Jan 21, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -84,7 +84,7 @@ def loaded?
#
# Be careful because this also means you're initializing a model
# object with only the fields that you've selected. If you attempt
- # to access a field that is not in the initialized record you'll
+ # to access a field except +id+ that is not in the initialized record you'll
# receive:
#
# person.pets.select(:name).first.person_id

0 comments on commit c6ecfc1

Please sign in to comment.