From c8b584f57625d6b2459c70b6746ab3729f2fde8f Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Thu, 19 Jan 2012 21:58:17 +0530 Subject: 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. --- activerecord/lib/active_record/relation/query_methods.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record') 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]) # => [#] # # Any attributes that do not have fields retrieved by a select -- cgit v1.2.3