Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c6ecfc1668d6e2c69d360ed376b9e3f77ad72e83 2 parents b0a8ef1 + 7e25da9
Rafael Mendonça França rafaelfranca authored
2  activerecord/lib/active_record/associations/collection_proxy.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.