aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-01-30 14:20:17 -0500
committerJon Moss <maclover7@users.noreply.github.com>2016-01-30 14:20:17 -0500
commit2e465e138b09b948ea266a7a5e739436cb01f3a9 (patch)
tree7190ace018a2cb643133bb8660c668c2c9590a1c /activerecord/lib/active_record
parenta398cd0bcbd39998f1b0313e6fe3f04bf491b3db (diff)
parent6c54f6c746673915eeedbfb2907547189c1e37df (diff)
downloadrails-2e465e138b09b948ea266a7a5e739436cb01f3a9.tar.gz
rails-2e465e138b09b948ea266a7a5e739436cb01f3a9.tar.bz2
rails-2e465e138b09b948ea266a7a5e739436cb01f3a9.zip
Merge pull request #23362 from vipulnsward/20821-save-doc-update
- Updated persistence documentation to make it clear that save and sa…
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/persistence.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 4d661735cc..d9a394fb71 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -106,7 +106,7 @@ module ActiveRecord
# the existing record gets updated.
#
# By default, save always runs validations. If any of them fail the action
- # is cancelled and #save returns +false+. However, if you supply
+ # is cancelled and #save returns +false+, and the record won't be saved. However, if you supply
# validate: false, validations are bypassed altogether. See
# ActiveRecord::Validations for more information.
#
@@ -133,7 +133,7 @@ module ActiveRecord
# the existing record gets updated.
#
# By default, #save! always runs validations. If any of them fail
- # ActiveRecord::RecordInvalid gets raised. However, if you supply
+ # ActiveRecord::RecordInvalid gets raised, and the record won't be saved. However, if you supply
# validate: false, validations are bypassed altogether. See
# ActiveRecord::Validations for more information.
#
@@ -270,7 +270,7 @@ module ActiveRecord
alias update_attributes update
# Updates its receiver just like #update but calls #save! instead
- # of +save+, so an exception is raised if the record is invalid.
+ # of +save+, so an exception is raised if the record is invalid and saving will fail.
def update!(attributes)
# The following transaction covers any possible database side-effects of the
# attributes assignment. For example, setting the IDs of a child collection.