Skip to content

Commit 6afadde

Browse files
committed
use :pass_aggregate.
1 parent d542a29 commit 6afadde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/docs/each_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class Cover < Trailblazer::Activity::Railway
460460
step :model
461461
step Each(dataset_from: :composers_for_each,
462462
# Inject(always: true) => {
463-
Inject(:composer_index) => ->(ctx, index:, **) { index },
463+
Inject(:composer_index, pass_aggregate: true) => ->(ctx, aggregate:, **) { aggregate[:index] },
464464
# all filters called before/after each iteration!
465465
Out() => ->(ctx, index:, variable:, **) { {:"composer-#{index}-value" => variable} }
466466

0 commit comments

Comments
 (0)