1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

clarified behaviour of :skip_validation_on_save configuration option

This commit is contained in:
Thorsten Böttger 2014-12-05 17:54:27 +01:00
parent 6f7f8d3315
commit adbe338582

View file

@ -347,7 +347,9 @@ 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:
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).
```ruby
class Job < ActiveRecord::Base