Class: TableSync::Model::ActiveRecord::AfterCommitWrap
- Inherits:
-
Object
- Object
- TableSync::Model::ActiveRecord::AfterCommitWrap
- Defined in:
- lib/table_sync/model/active_record.rb
Instance Method Summary collapse
- #before_committed! ⇒ Object
- #committed! ⇒ Object
-
#initialize(&block) ⇒ AfterCommitWrap
constructor
A new instance of AfterCommitWrap.
- #rolledback! ⇒ Object
Constructor Details
#initialize(&block) ⇒ AfterCommitWrap
Returns a new instance of AfterCommitWrap.
6 7 8 |
# File 'lib/table_sync/model/active_record.rb', line 6 def initialize(&block) @callback = block end |
Instance Method Details
#before_committed! ⇒ Object
14 |
# File 'lib/table_sync/model/active_record.rb', line 14 def before_committed!(*); end |
#committed! ⇒ Object
10 11 12 |
# File 'lib/table_sync/model/active_record.rb', line 10 def committed!(*) @callback.call end |
#rolledback! ⇒ Object
16 |
# File 'lib/table_sync/model/active_record.rb', line 16 def rolledback!(*); end |