-
Notifications
You must be signed in to change notification settings - Fork 637
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
Global callbacks #253
Comments
+1 I was just looking at how to do this so that we can track event transition timing (and other such metrics). |
+1 |
Okay, I see your point. Will work on that from now on. |
Would this be sufficient? aasm do
after_all_transitions :do_logging_or_whatever
end
def do_logging_or_whatever
...
end In |
Yeah, that works for me. |
That would be good. Imho also a before callback would be nice to have a trace in case something goes wrong during transition. |
@alto are you working on this feature ? If not then I can help you on this. |
@anilmaurya Thanks for your offer. I'm sorry, I'm already working on it. |
@alto No problem . Happy coding 😄 |
Please take a look at #270 and let me know if that works for your problem. Will release soon. |
Awesome job, thanks. |
Yeah, that works for me too. Thanks. |
Closed with #270 . |
I just released version |
It would be nice (mostly for auditing purpose) to have a set of global callbacks in this gem, something like
What do you think?
The text was updated successfully, but these errors were encountered: