mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
TIL: no that with comma
This commit is contained in:
parent
780e30c4e0
commit
5b885c8a0d
1 changed files with 2 additions and 2 deletions
|
@ -315,7 +315,7 @@ job.aasm.current_state # stage3
|
|||
|
||||
### Multiple state machines per class
|
||||
|
||||
Multiple state machines per class are supported. Be aware though, that _AASM_ has been
|
||||
Multiple state machines per class are supported. Be aware though that _AASM_ has been
|
||||
built with one state machine per class in mind. Nonetheless, here's how to do it:
|
||||
|
||||
```ruby
|
||||
|
@ -417,7 +417,7 @@ job.run! # saved
|
|||
|
||||
Saving includes running all validations on the `Job` class. 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 validations. Be aware, that
|
||||
invalid object state), simply tell AASM to skip the validations. Be aware that
|
||||
when skipping validations, only the state column will be updated in the database
|
||||
(just like ActiveRecord `change_column` is working).
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue