Method: Journaled::Connection.stage!

Defined in:
lib/journaled/connection.rb

.stage!(event) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/journaled/connection.rb', line 10

def stage!(event)
  raise TransactionSafetyError, <<~MSG unless available?
    Transaction not available! By default, journaled event batching requires an open database transaction.
  MSG

  connection.current_transaction._journaled_staged_events << event
end