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: users_controller.rb
    path of file: ./repos/SalorHospitality/salor-hospitality/app/controllers
    
    the code of the file until where you have to start completion: # coding: UTF-
    
  def destroy
    @user = get_model
    redirect_to users_path and return unless @user
    if @current_vendor.tables.existing.active.where(:active_user_id => @user.id).any?
      flash[:notice] = I18n.t("This user has active orders. Cannot delete.")
      redirect_to users_path
      return
    end