# File lib/state_machine/machine.rb, line 1470 def within_transaction(object) if use_transactions transaction(object) { yield } else yield end end