Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add missing information for `id` field when used with `select` [ci skip]

  • Loading branch information...
commit 7e25da9eed040bb6b732d8fe390fed9913c812d3 1 parent b0a8ef1
@kuldeepaggarwal kuldeepaggarwal authored
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.