Skip to content

Loading…

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

Closed
sporto opened this Issue · 1 comment

2 participants

@sporto

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
PluginAWeek 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!

@obrie obrie closed this
@obrie obrie was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.