Class: Que::Adapters::ActiveRecord::TransactionCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/que/adapters/active_record.rb

Instance Method Summary collapse

Instance Method Details

#add_to_transactionObject



50
51
52
53
54
55
56
# File 'lib/que/adapters/active_record.rb', line 50

def add_to_transaction
  # no-op.
  #
  # This is called when we're in a nested transaction. Ideally we would
  # `wake!` when the outer transaction gets committed, but that would be
  # a bigger refactor!
end

#before_committed!Object



46
47
48
# File 'lib/que/adapters/active_record.rb', line 46

def before_committed!(*)
  # no-op
end

#committed!(should_run_callbacks = true) ⇒ Object



42
43
44
# File 'lib/que/adapters/active_record.rb', line 42

def committed!(should_run_callbacks = true)
  Que.wake!
end

#has_transactional_callbacks?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/que/adapters/active_record.rb', line 34

def has_transactional_callbacks?
  true
end

#rolledback!(force_restore_state = false, should_run_callbacks = true) ⇒ Object



38
39
40
# File 'lib/que/adapters/active_record.rb', line 38

def rolledback!(force_restore_state = false, should_run_callbacks = true)
  # no-op
end