class ViewModel::ActiveRecord::ReferencedCollectionUpdate::Functional

def resolve_vm_reference(ref, update_context)

def resolve_vm_reference(ref, update_context)
  update_context.resolve_reference(ref, nil).viewmodel_reference
end

def used_vm_refs(update_context)

def used_vm_refs(update_context)
  references.map do |ref|
    resolve_vm_reference(ref, update_context)
  end
end