Is it possible to send parameters to an event? #179

Closed
sporto opened this Issue May 9, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@sporto

sporto commented May 9, 2012

In many cases I will like to send parameters to an event e.g.

document.publish(current_user)

So I could decide wherever the event is valid or not or just trigger another action e.g. storing a log of who published the document

Is it possible to do this?

Thanks

@obrie

This comment has been minimized.

Show comment
Hide comment
@obrie

obrie May 17, 2012

Member

Yes it is. See the "Defining additional arguments" section here: http://rdoc.info/github/pluginaweek/state_machine/StateMachine/Machine:event

If you can, please use the Google Group in the future for questions like this -- https://groups.google.com/forum/?fromgroups#!forum/pluginaweek-talk

Hope this helps!

Member

obrie commented May 17, 2012

Yes it is. See the "Defining additional arguments" section here: http://rdoc.info/github/pluginaweek/state_machine/StateMachine/Machine:event

If you can, please use the Google Group in the future for questions like this -- https://groups.google.com/forum/?fromgroups#!forum/pluginaweek-talk

Hope this helps!

@obrie obrie closed this May 17, 2012

@ghost ghost assigned obrie May 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment