aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/query_methods.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-09-20 19:39:46 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-09-20 19:46:59 +0530
commited1ada84ac5b443ef979c14a4d0f1a8a57fe9ab9 (patch)
treedb88e4cc070231c66f623277a6e26da70218cc48 /activerecord/lib/active_record/relation/query_methods.rb
parent7ed97bc8149f745317a897304c8c86f0e3bba4d2 (diff)
downloadrails-ed1ada84ac5b443ef979c14a4d0f1a8a57fe9ab9.tar.gz
rails-ed1ada84ac5b443ef979c14a4d0f1a8a57fe9ab9.tar.bz2
rails-ed1ada84ac5b443ef979c14a4d0f1a8a57fe9ab9.zip
copy edits 908f2616
Diffstat (limited to 'activerecord/lib/active_record/relation/query_methods.rb')
-rw-r--r--activerecord/lib/active_record/relation/query_methods.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb
index 4468a38ee6..670ba0987d 100644
--- a/activerecord/lib/active_record/relation/query_methods.rb
+++ b/activerecord/lib/active_record/relation/query_methods.rb
@@ -47,21 +47,21 @@ module ActiveRecord
# converting them into an array and iterating through them using Array#select.
#
# Second: Modifies the SELECT statement for the query so that only certain
- # fields are retreived:
+ # fields are retrieved:
#
# >> Model.select(:field)
# => [#<Model field:value>]
#
# Although in the above example it looks as though this method returns an
- # array, in actual fact it returns a relation object and can have other query
+ # 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:
#
# >> Model.select(:field, :other_field, :and_one_more)
- # => [#<Model field: "value", other_field: "value", :and_one_more: "value">]
+ # => [#<Model field: "value", other_field: "value", and_one_more: "value">]
#
- # Any attributes that do not have fields retreived by a select
+ # Any attributes that do not have fields retrieved by a select
# will return `nil` when the getter method for that attribute is used:
#
# >> Model.select(:field).first.other_field