Skip to content

Commit

Permalink
document how to define transitions from any state
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Chuchkalov authored and Anil Kumar Maurya committed Aug 12, 2020
1 parent d19fc6d commit 1cca1b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -434,6 +434,14 @@ job.stage1_completed
job.aasm.current_state # stage3
```

You can define transition from any defined state by omitting `from`:

```ruby
event :abort do
transitions to: :aborted
end
```

### Display name for state

You can define display name for state using :display option
Expand Down

0 comments on commit 1cca1b2

Please sign in to comment.