Module: ActiveRecord::ConnectionAdapters::DatabaseStatements

Defined in:
lib/obsidian/rails/model_update_tracker.rb

Instance Method Summary collapse

Instance Method Details

#commit_db_transaction_with_model_update_trackerObject



172
173
174
175
# File 'lib/obsidian/rails/model_update_tracker.rb', line 172

def commit_db_transaction_with_model_update_tracker
  commit_db_transaction_without_model_update_tracker
  Obsidian::Rails::ModelUpdateTracker.after_transaction_commit
end

#rollback_db_transaction_with_model_update_trackerObject



167
168
169
170
# File 'lib/obsidian/rails/model_update_tracker.rb', line 167

def rollback_db_transaction_with_model_update_tracker
  rollback_db_transaction_without_model_update_tracker
  Obsidian::Rails::ModelUpdateTracker.after_transaction_rollback
end

#transaction_with_model_update_tracker(*args, &blk) ⇒ Object



160
161
162
163
164
165
# File 'lib/obsidian/rails/model_update_tracker.rb', line 160

def transaction_with_model_update_tracker(*args,&blk)
  transaction_without_model_update_tracker(*args,&blk)
rescue
  Obsidian::Rails::ModelUpdateTracker.after_transaction_exception
  raise
end