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

Group/zipping the permitted event and permitted state. #656

Closed
aviisekh opened this issue Dec 2, 2019 · 1 comment · Fixed by #664
Closed

Group/zipping the permitted event and permitted state. #656

aviisekh opened this issue Dec 2, 2019 · 1 comment · Fixed by #664

Comments

@aviisekh
Copy link

aviisekh commented Dec 2, 2019

If suppose my application is in applied state, I need to make a hash where I should know that if I trigger hire, it should move to hired, or if I reject, it should move to rejected state.

So Need to compute execute hash like
Application.first.aasm.permitted_transitions
[{event: hire, state: hired}, {event: reject, state: rejected}]

@aviisekh aviisekh changed the title Group/zipping the permitted event and permitted state on that event. Group/zipping the permitted event and permitted state. Dec 2, 2019
@anilmaurya
Copy link
Member

AASM does not support this feature at the moment.
I think its good to have feature, PR is welcome.

dnamsons added a commit to dnamsons/aasm that referenced this issue Feb 8, 2020
anilmaurya pushed a commit that referenced this issue Feb 8, 2020
#664)

* Feature: Add permitted_transitions to group permitted event with state

resolves #656
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants