lib/trailblazer/activity/dsl/linear/variable_mapping.rb in trailblazer-activity-dsl-linear-0.1.9 vs lib/trailblazer/activity/dsl/linear/variable_mapping.rb in trailblazer-activity-dsl-linear-0.2.0
- old
+ new
@@ -65,14 +65,14 @@
class Scoped
def initialize(filter)
@filter = filter
end
- def call(original_ctx, **circuit_options)
+ def call((original_ctx, flow_options), **circuit_options)
Trailblazer::Context.for( # TODO: make this interchangeable so we can work on faster contexts?
@filter.(original_ctx, **circuit_options),
- [original_ctx, {}], circuit_options # these options for {Context.for} are currently unused.
+ [original_ctx, flow_options], circuit_options # these options for {Context.for} are currently unused.
)
end
end
end
@@ -82,10 +82,10 @@
class Unscoped
def initialize(filter)
@filter = filter
end
- def call(original_ctx, new_ctx, **circuit_options)
+ def call(new_ctx, (original_ctx, flow_options), **circuit_options)
original_ctx.merge(
@filter.(new_ctx, **circuit_options)
)
end
end