aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorMohit Natoo <mohitnatoo@gmail.com>2017-05-26 18:30:21 +0700
committerMohit Natoo <mohitnatoo@gmail.com>2017-05-26 18:30:21 +0700
commit235836ae58605931f72ecaef95363aa6784eb977 (patch)
tree0b7131c9f3ea318e31d347a6e5c0b0a0aa395014 /activerecord/lib/active_record
parent97bd56e674603529d96c6f6e85d695dd24208afb (diff)
downloadrails-235836ae58605931f72ecaef95363aa6784eb977.tar.gz
rails-235836ae58605931f72ecaef95363aa6784eb977.tar.bz2
rails-235836ae58605931f72ecaef95363aa6784eb977.zip
[ci skip] Changed sentence formation for ActiveRecordRelation#update
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/relation.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb
index 5775eda5a5..af9be9875e 100644
--- a/activerecord/lib/active_record/relation.rb
+++ b/activerecord/lib/active_record/relation.rb
@@ -404,9 +404,9 @@ module ActiveRecord
#
# Note: Updating a large number of records will run an
# UPDATE query for each record, which may cause a performance
- # issue. So if it is not needed to run callbacks for each update, it is
- # preferred to use #update_all for updating all records using
- # a single query.
+ # issue. When running callbacks is not needed for each record update,
+ # it is preferred to use #update_all for updating all records
+ # in a single query.
def update(id = :all, attributes)
if id.is_a?(Array)
id.map.with_index { |one_id, idx| update(one_id, attributes[idx]) }