Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document how to define transitions from any state #699

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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