add rails 4.2 support. Access transaction through `@transaction_manager`

In rails 4.2.beta1, `@transaction` is not defined. Instead the transaction can be accessed through `@transaction_manager.current_transaction`.