Merge pull request #29731 from castrodd/patch-1

[ci skip] Updated language on validations.
This commit is contained in:
Kasper Timm Hansen 2017-07-09 18:27:44 +02:00 committed by GitHub
commit 0b6309d6bc
1 changed files with 2 additions and 2 deletions

View File

@ -314,8 +314,8 @@ already in the database, follows a specific format and many more.
Validation is a very important issue to consider when persisting to the database, so
the methods `save` and `update` take it into account when
running: they return `false` when validation fails and they didn't actually
perform any operation on the database. All of these have a bang counterpart (that
running: they return `false` when validation fails and they don't actually
perform any operations on the database. All of these have a bang counterpart (that
is, `save!` and `update!`), which are stricter in that
they raise the exception `ActiveRecord::RecordInvalid` if validation fails.
A quick example to illustrate: