You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: delivery_infos_controller.rb
    path of file: ./repos/wei/app/controllers
    
    the code of the file until where you have to start completion: class DeliveryInfosController < ApplicationController
  before_action :set_user

  def create
    
    
  def create
    info = @current_user.delivery_infos.mine(params[:activity_id]).first
    if info
      info.update delivery_info_params
    else
      info = DeliveryInfo.create_from(params[:activity_id], @current_user.id, delivery_info_params)
    end