|
|
|
|
|
by Sinjo
1462 days ago
|
|
Honestly state machines are fantastic in Rails too. My last company built Statesman (https://github.com/gocardless/statesman/) and being able to lean on it to prevent you getting into invalid states is fantastic. You also get the bonus of tracking the history of states your resources went through (which is especially useful when you're dealing with payments). At some point you'll have to think about query performance on the state transition table, but it'll go further than you think and is firmly in the realm of problems of success. |
|