instance method start

Ruby on Rails 7.2.3

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

start()

No documentation comment.

Source
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 90
      def start
        raise InstrumentationAlreadyStartedError.new("Called start on an already started transaction") if @started
        @started = true

        ActiveSupport::Notifications.instrument("start_transaction.active_record", @base_payload)

        @payload = @base_payload.dup # We dup because the payload for a given event is mutated later to add the outcome.
        @handle = ActiveSupport::Notifications.instrumenter.build_handle("transaction.active_record", @payload)
        @handle.start
      end

Defined in activerecord/lib/active_record/connection_adapters/abstract/transaction.rb line 90 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::TransactionInstrumenter

Type at least 2 characters to search.

↑↓ navigate · open · esc close