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: stock_adjustments_controller.rb
    path of file: ./repos/trado/app/controllers/admin/skus
    
    the code of the file until where you have to start completion: class Admin::
    
  def create
    set_product
    set_sku
    @stock_adjustment = @sku.stock_adjustments.build(params[:stock_adjustment])
    if @stock_adjustment.save
      render json: { row: render_to_string(partial: 'admin/products/skus/stock_adjustments/single', locals: { stock_adjustment: @stock_adjustment }), sku_name: @sku.full_sku }, status: 201 
    else
      render json: { errors: @stock_adjustment.errors.full_messages }, status: 422
    end