I am currently developing a Rails app and I am using the state_machine gem to guide the customer through a complex process. At multiple states of the process, I need to trigger events after a certain period time. For instance, if the customer hasn't confirmed he received his order after 5 days I'd like to automatically send him an email and enter in a parcel tracking process.
How can I trigger transition after a certain period of time? Thank you, Clément |