Permalink
Browse files

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.
  • Loading branch information...
1 parent 2e6ca53 commit c8b584f57625d6b2459c70b6746ab3729f2fde8f @vijaydev vijaydev committed Jan 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/relation/query_methods.rb
@@ -57,9 +57,9 @@ def preload(*args)
# 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

0 comments on commit c8b584f

Please sign in to comment.