Closed stephenbinns closed 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.
true
respond_to?
state_machine
See https://github.com/gocardless/payments-service/pull/42438 for a stuck upgrade
Passing
true
torespond_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 thestate_machine
has been made private.See https://github.com/gocardless/payments-service/pull/42438 for a stuck upgrade