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: bait_library_types_controller.rb
    path of file: ./repos/sequencescape/app/controllers/admin/bait_libraries
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
class Admi
    
  def update
    respond_to do |format|
      if @bait_library_type.update(params[:bait_library_type])
        flash[:notice] = 'Bait Library Type was successfully updated.'
        format.html { redirect_to(admin_bait_libraries_path) }
      else
        format.html { render action: 'edit' }
      end
    end