Method: EffectiveAfterCommit::Base#after_rollback
- Defined in:
- app/models/concerns/effective_after_commit.rb
#after_rollback(connection: self.class.connection, &callback) ⇒ Object
23 24 25 26 |
# File 'app/models/concerns/effective_after_commit.rb', line 23 def after_rollback(connection: self.class.connection, &callback) raise('expected a block') unless block_given? Effective::AfterCommit.register_callback(connection: connection, name: __method__, callback: callback) end |