module ViewModel::AfterTransactionRunner
def add_to_transaction
def add_to_transaction if connection.transaction_open? connection.add_transaction_record(self) else before_commit after_commit end end
def add_to_transaction if connection.transaction_open? connection.add_transaction_record(self) else before_commit after_commit end end