A:That's not it. the code you linked is just a quick hack intended to verify which transaction method gets called by setting a trace function and printing all the data on function calls when name contains word transaction and then running some ActiveRecord transaction code. The result: it's a class method
ActiveRecord::Transactions::ClassMethods#transaction