add rails 4.2 support. Access transaction through @transaction_manager