is there a callback if a transition fails?
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 5.2k
- Forks
- 644
- PR merge metrics
- No merged PRs in 30d
Description
i am poking around with the code to find a possible callback that i can use if a transition fails.
it seems like i could use aasm_event_failed for it but it gets triggered for all failed transition events. that means that i need to implement the logic to check what the event fails and handle it accordingly.
unless i am missing something obvious in the code, can someone point me to it?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the aasm_event_failed callback and the failed-transition handling in AASM. Determine whether callbacks can be scoped to a specific event rather than all failed transitions. The issue is complete when the available behavior or the required event-specific callback behavior is clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100