aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-21 13:39:55 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-01-21 13:39:55 -0800
commitc6ecfc1668d6e2c69d360ed376b9e3f77ad72e83 (patch)
tree6e319400981cfeb494cbb0a73dabbfb40b611169 /activerecord
parentb0a8ef140e4cc95fa5d3888699fd3d72fd720172 (diff)
parent7e25da9eed040bb6b732d8fe390fed9913c812d3 (diff)
downloadrails-c6ecfc1668d6e2c69d360ed376b9e3f77ad72e83.tar.gz
rails-c6ecfc1668d6e2c69d360ed376b9e3f77ad72e83.tar.bz2
rails-c6ecfc1668d6e2c69d360ed376b9e3f77ad72e83.zip
Merge pull request #13784 from kuldeepaggarwal/fix-doc-collection-proxy
Add missing information for `id` field when used with `select` [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index e3fc908444..10434734e3 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -84,7 +84,7 @@ module ActiveRecord
#
# 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