class ViewModel::UpMigrator
def migrate_functional_update!(node, references:)
context-dependent meaning. Retrospectively this was a poor choice, but we
The functional update structure uses `_type` internally with a
def migrate_functional_update!(node, references:) actions = node[ViewModel::ActiveRecord::ACTIONS_ATTRIBUTE] actions&.each do |action| action_type = action[ViewModel::TYPE_ATTRIBUTE] next unless NESTED_FUPDATE_TYPES.include?(action_type) values = action[ViewModel::ActiveRecord::VALUES_ATTRIBUTE] values&.each do |value| migrate_tree!(value, references: references) end end end