Fixed inconsistent use of :use_transactions (machine.rb), :transaction (option in transition_collection.rb), :use_transaction (attr_reader in transition_collection.rb) and standardized on :use_transactions. Made MachineCollection and TransitionCollection respect the state_machine:use_transactions configuration. Previously, the MachineCollection and TransitionCollection were operating off of hardcoded values, and ignoring the state_machine configuration. Hardcoded defaults remain but are overridden if specified in the state_machine configuration.
In the process, added #resolve_use_transactions to address a corner case where homogeneous state_machine:use_transactions configurations could create indeterminate behavior.
Fixed inconsistent use of
:use_transactions
(machine.rb),:transaction
(option in transition_collection.rb),:use_transaction
(attr_reader
in transition_collection.rb) and standardized on:use_transactions
. MadeMachineCollection
andTransitionCollection
respect thestate_machine
:use_transactions
configuration. Previously, theMachineCollection
andTransitionCollection
were operating off of hardcoded values, and ignoring thestate_machine
configuration. Hardcoded defaults remain but are overridden if specified in thestate_machine
configuration.In the process, added
#resolve_use_transactions
to address a corner case where homogeneousstate_machine
:use_transactions
configurations could create indeterminate behavior.