lib/node_mutation/helper.rb in node_mutation-1.20.0 vs lib/node_mutation/helper.rb in node_mutation-1.21.0

- old
+ new

@@ -2,10 +2,10 @@ class NodeMutation::Helper # It iterates over all actions, and calls the given block with each action. def self.iterate_actions(actions, &block) actions.each do |action| - if action.is_a?(NodeMutation::CombinedAction) + if action.is_a?(NodeMutation::GroupAction) iterate_actions(action.actions, &block) else block.call(action) end end