gocardless / statesman

A statesmanlike state machine library.
https://gocardless.com/blog/statesman/
MIT License
1.78k stars 163 forks source link

Fix reloading state machine caches #514

Closed stephenbinns closed 1 year ago

stephenbinns commented 1 year ago

Passing true to respond_to? means that private and protected methods are considered, in the subsequent call we make a standard call to the method which will fail if the state_machine has been made private.

See https://github.com/gocardless/payments-service/pull/42438 for a stuck upgrade