From 7e25da9eed040bb6b732d8fe390fed9913c812d3 Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Wed, 22 Jan 2014 02:50:23 +0530 Subject: [PATCH] add missing information for `id` field when used with `select` [ci skip] --- activerecord/lib/active_record/associations/collection_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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 -- GitLab