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: split_details_controller.rb
    path of file: ./repos/test_track/app/controllers/admin
    
    the code of the file until where you have to start completion: class Admin::SplitDetailsController < AuthenticatedAdminController
  d
    
  def update
    @split_detail = Split.find(params[:split_id]).detail
    @split_detail.assign_attributes split_detail_params

    if @split_detail.save
      flash[:success] = "Successfully updated split test details."
      redirect_to admin_split_path(@split_detail.split)
    else
      render :edit
    end