rails/rails — pull request #16364 by arthurnn (2014-07-31 20:53:59+00:00)
Title: Cleanup Transaction inheritance.

Transaction class doesnt need to encapsulate the transaction state using
inheritance.
This removes all Transaction subclasses, and let the Transaction object
controls different actions based on its own state. Basically the only
actions would behave differently are `being`,`commit`,`rollback` as they
could act in a savepoint or in a real transaction.

[related to https://github.com/rails/rails/pull/16341#issuecomment-50791622]

review @chancancode @tenderlove @rafaelfranca @jeremy