lib/node_mutation.rb in node_mutation-1.21.2 vs lib/node_mutation.rb in node_mutation-1.21.3
- old
+ new
@@ -300,10 +300,10 @@
if conflict_actions.size > 0 && strategy?(Strategy::THROW_ERROR)
raise ConflictActionError, "mutation actions are conflicted"
end
result = NodeMutation::Result.new(affected: true, conflicted: !conflict_actions.empty?)
- result.actions = @actions
+ result.actions = @actions.map(&:to_struct)
result
end
private