We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To get the perform parameters of Model.some_transition.perform(:a, :b, {:c => :d}) we currently have to do something like
Model.some_transition.perform(:a, :b, {:c => :d})
before_transition :on => :some_transition do |model, transition| (a,b,opts) = transition.args # actual code here end
It would be nice to make the syntax a bit more compact by passing the perform arguments to the callbacks directly if their arity allows
it should look like this
before_transition :on => :some_transition do |model, transition, a, b, opts| # actual code here end
The same applies to method callbacks instead of procs of course.
The text was updated successfully, but these errors were encountered:
yeah, +1
Sorry, something went wrong.
There are some complexities with around callbacks and some of the ORM integrations for this. I'll think about this as part of the 2.0.0 release.
removed previous question as I did not see mailing list. Thanks for such a great gem!
obrie
No branches or pull requests
To get the perform parameters of
Model.some_transition.perform(:a, :b, {:c => :d})
we currently have to do something likeIt would be nice to make the syntax a bit more compact by passing the perform arguments to the callbacks directly if their arity allows
it should look like this
The same applies to method callbacks instead of procs of course.
The text was updated successfully, but these errors were encountered: