aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-01-19 21:58:17 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-19 21:58:19 +0530
commitc8b584f57625d6b2459c70b6746ab3729f2fde8f (patch)
treef74f38f0add62b86ff0f25b454320f884ca78ed7 /activerecord/lib/active_record/relation
parent2e6ca53da3f154b013749638680d6f2b17b00355 (diff)
downloadrails-c8b584f57625d6b2459c70b6746ab3729f2fde8f.tar.gz
rails-c8b584f57625d6b2459c70b6746ab3729f2fde8f.tar.bz2
rails-c8b584f57625d6b2459c70b6746ab3729f2fde8f.zip
select doesn't take multiple arguments - fixes #4539 [ci skip]
Didn't cherry pick the master commit because this one already had some of the fixes made in master.
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 7fd5ad88d9..fab2cd77f0 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -57,9 +57,9 @@ module ActiveRecord
# array, it actually returns a relation object and can have other query
# methods appended to it, such as the other methods in ActiveRecord::QueryMethods.
#
- # This method will also take multiple parameters:
+ # The argument to the method can also be an array of fields.
#
- # >> Model.select(:field, :other_field, :and_one_more)
+ # >> Model.select([:field, :other_field, :and_one_more])
# => [#<Model field: "value", other_field: "value", and_one_more: "value">]
#
# Any attributes that do not have fields retrieved by a select