Class: Que::Adapters::ActiveRecord::TransactionCallback
- Inherits:
-
Object
- Object
- Que::Adapters::ActiveRecord::TransactionCallback
- Defined in:
- lib/que/adapters/active_record.rb
Instance Method Summary collapse
- #add_to_transaction ⇒ Object
- #before_committed! ⇒ Object
- #committed!(should_run_callbacks = true) ⇒ Object
- #has_transactional_callbacks? ⇒ Boolean
- #rolledback!(force_restore_state = false, should_run_callbacks = true) ⇒ Object
Instance Method Details
#add_to_transaction ⇒ Object
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
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 |