How do I create dynamic definitions for state machine based on user defined data in DB
问题 I am trying to write an application that will allow users to manage workflows using the State Machine gem but I am not sure how to proceed in allowing users to define their own state machines using the State Machine gem for ruby. In the dynamic definitions portion of the gem documentation it says that I should be able to do this by replacing code like this below with a data source. def transitions [ {:parked => :idling, :on => :ignite}, {:idling => :first_gear, :first_gear => :second_gear,