aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-01-22 02:50:23 +0530
committerKuldeep Aggarwal <kd.engineer@yahoo.co.in>2014-01-22 02:50:23 +0530
commit7e25da9eed040bb6b732d8fe390fed9913c812d3 (patch)
tree6e319400981cfeb494cbb0a73dabbfb40b611169 /activerecord/lib
parentb0a8ef140e4cc95fa5d3888699fd3d72fd720172 (diff)
downloadrails-7e25da9eed040bb6b732d8fe390fed9913c812d3.tar.gz
rails-7e25da9eed040bb6b732d8fe390fed9913c812d3.tar.bz2
rails-7e25da9eed040bb6b732d8fe390fed9913c812d3.zip
add missing information for `id` field when used with `select` [ci skip]
Diffstat (limited to 'activerecord/lib')
-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