Merge pull request #29731 from castrodd/patch-1
[ci skip] Updated language on validations.
This commit is contained in:
commit
0b6309d6bc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue