mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Update README.md - Active Record
This commit is contained in:
parent
18b6187d6f
commit
5e31a10269
1 changed files with 4 additions and 2 deletions
|
@ -541,8 +541,10 @@ job.run # not saved
|
|||
job.run! # saved
|
||||
```
|
||||
|
||||
Saving includes running all validations on the `Job` class, and returns `true` if
|
||||
successful or `false` if errors occur. Exceptions are not raised.
|
||||
Saving includes running all validations on the `Job` class. If
|
||||
`whiny_persistence` flag is set to `true`, exception is raised in case of
|
||||
failure. If `whiny_persistence` flag is set to false, methods with a bang return
|
||||
`true` if the state transition is successful or `false` if an error occurs.
|
||||
|
||||
If you want make sure the state gets saved without running validations (and
|
||||
thereby maybe persisting an invalid object state), simply tell AASM to skip the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue