lib/trailblazer/activity/schema/compiler.rb in trailblazer-activity-0.16.2 vs lib/trailblazer/activity/schema/compiler.rb in trailblazer-activity-0.16.3
- old
+ new
@@ -22,10 +22,10 @@
Schema.new(circuit, outputs, nodes, config)
end
# From the intermediate "template" and the actual implementation, compile a {Circuit} instance.
def schema_components(intermediate, implementation, config)
- wiring = {}
+ wiring = {}.compare_by_identity # https://ruby-doc.org/3.3.0/Hash.html#class-Hash-label-Modifying+an+Active+Hash+Key
nodes_attributes = []
intermediate.wiring.each do |task_ref, outs|
id = task_ref.id
impl_task = implementation.fetch(id)