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

Cannot run events in parallel: set_non_paying #271

Open
akatz opened this issue Jul 15, 2013 · 0 comments
Open

Cannot run events in parallel: set_non_paying #271

akatz opened this issue Jul 15, 2013 · 0 comments

Comments

@akatz
Copy link

akatz commented Jul 15, 2013

It seems that if the conditional requirement for a state transition is false, the error message for fire_events! is misleading.

pry(main)> acc.fire_events!(:set_non_paying)
StateMachine::InvalidParallelTransition: Cannot run events in parallel: set_non_paying

pry(main)> z.set_non_paying!
StateMachine::InvalidTransition: Cannot transition status via :set_non_paying from :trial (Reason(s): Status cannot transition via "set non paying")

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

No branches or pull requests

1 participant