mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[doc] Update return false if record is invalid
This commit is contained in:
parent
6946fffd63
commit
11cae34701
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ database only if the object is valid:
|
|||
* `update!`
|
||||
|
||||
The bang versions (e.g. `save!`) raise an exception if the record is invalid.
|
||||
The non-bang versions don't: `save` and `update` return `false`,
|
||||
`create` and `update` just return the objects.
|
||||
The non-bang versions don't, `save` and `update` return `false`,
|
||||
`create` just return the objects.
|
||||
|
||||
### Skipping Validations
|
||||
|
||||
|
|
Loading…
Reference in a new issue