Skip to content

Commit

Permalink
Fix batch
Browse files Browse the repository at this point in the history
  • Loading branch information
antulik committed Jul 31, 2024
1 parent c188934 commit 8359dec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/active_interaction/extras/current.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ class CurrentContext < ActiveSupport::CurrentAttributes
attribute :job
attribute :batch_event
attribute :batch

def batch
super || job&.batch
end
end

def current
Expand Down

0 comments on commit 8359dec

Please sign in to comment.