1
0
Fork 0
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:
Mateusz Wieloch 2016-10-19 21:54:13 -05:00 committed by Anil Kumar Maurya
parent 18b6187d6f
commit 5e31a10269

View file

@ -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