mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Update Readme, add state change logging example
This commit is contained in:
parent
4cf948f0e0
commit
95dcdb5bf4
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
||||||
- [Transaction support](#transaction-support)
|
- [Transaction support](#transaction-support)
|
||||||
- [Pessimistic Locking](#pessimistic-locking)
|
- [Pessimistic Locking](#pessimistic-locking)
|
||||||
- [Column name & migration](#column-name--migration)
|
- [Column name & migration](#column-name--migration)
|
||||||
|
- [Log State Changes](#log-state-changes)
|
||||||
- [Inspection](#inspection)
|
- [Inspection](#inspection)
|
||||||
- [Warning output](#warning-output)
|
- [Warning output](#warning-output)
|
||||||
- [RubyMotion support](#rubymotion-support)
|
- [RubyMotion support](#rubymotion-support)
|
||||||
|
@ -1089,6 +1090,13 @@ class AddJobState < ActiveRecord::Migration
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Log State Changes
|
||||||
|
|
||||||
|
Logging state change can be done using [paper_trail](https://github.com/paper-trail-gem/paper_trail) gem
|
||||||
|
|
||||||
|
Example of implementation can be found here [https://github.com/nitsujri/aasm-papertrail-example](https://github.com/nitsujri/aasm-papertrail-example)
|
||||||
|
|
||||||
|
|
||||||
### Inspection
|
### Inspection
|
||||||
|
|
||||||
AASM supports query methods for states and events
|
AASM supports query methods for states and events
|
||||||
|
|
Loading…
Reference in a new issue