Module: AfterCommitQueue
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/after_commit_queue.rb,
lib/after_commit_queue/version.rb
Constant Summary collapse
- VERSION =
"1.3.0"
Instance Method Summary collapse
-
#run_after_commit(method = nil, &block) ⇒ Object
Public: Add method to after commit queue.
Instance Method Details
#run_after_commit(method = nil, &block) ⇒ Object
Public: Add method to after commit queue
10 11 12 13 14 |
# File 'lib/after_commit_queue.rb', line 10 def run_after_commit(method = nil, &block) _after_commit_queue << Proc.new { self.send(method) } if method _after_commit_queue << block if block true end |