A Ruby on Rails plugin to add an after_commit callback. This can be used to trigger things only after the entire transaction is complete.
62
stars
32
forks
source link
Fix: alias_method_chain not being made for transaction_with_callback #6
Closed
ochko closed 13 years ago
replaced respond_to? by method_defined? :
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.method_defined? 'begin_db_transaction' => true ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.respond_to? 'begin_db_transaction' => false
My specs were failing due to non-ending transactions when I use thinking-sphinx. Then found this bug in after_commit.