Closed zerc closed 1 year ago
In https://github.com/gocardless/statesman/pull/417 the state.reset method was added and suggested to be used together with active_record.reload.
state.reset
active_record.reload
In this PR, I make sure that we apply this logic automatically if Statesman::Adapters::ActiveRecordQueries included to the model definition so the users don't have to do this themself.
Statesman::Adapters::ActiveRecordQueries
PR is merged but for some reason it's not marked as such on Github ðŸ˜
In https://github.com/gocardless/statesman/pull/417 the
state.reset
method was added and suggested to be used together withactive_record.reload
.In this PR, I make sure that we apply this logic automatically if
Statesman::Adapters::ActiveRecordQueries
included to the model definition so the users don't have to do this themself.