Is it possible to get all events from a model class? I want to filter a list by events.
There was a similar question on mailinglist about all transitions.
I am using https://github.com/pluginaweek/state_machine
Right on the github page you link to it shows the API methods for:
vehicle.state_events # shows all the events possible from the current state
and
vehicle.state_paths.events # shows all the events for an object
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With