Methods

Class Public methods

new(connection, options, *args)

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 170
      def initialize(connection, options, *args)
        super
        if options[:isolation]
          connection.begin_isolated_db_transaction(options[:isolation])
        else
          connection.begin_db_transaction
        end
      end
🔎 See on GitHub

Instance Public methods

commit()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 184
      def commit
        connection.commit_db_transaction
        @state.full_commit!
      end
🔎 See on GitHub

rollback()

📝 Source code
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 179
      def rollback
        connection.rollback_db_transaction
        @state.full_rollback!
      end
🔎 See on GitHub