Skip to content
This repository was archived by the owner on Oct 31, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/after_commit_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def run_after_commit(method = nil, &block)
# Protected: Is called as after_commit callback
# runs methods from the queue and clears the queue afterwards
def _run_after_commit_queue
_after_commit_queue.each do |action|
while _after_commit_queue.present?
action = _after_commit_queue.pop
self.instance_eval &action
end
@after_commit_queue.clear
Expand Down