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: discussion_locks_controller.rb
    path of file: ./repos/forem/app/controllers
    
    the code of the file until where you have to start completion: class Discussi
    
  def destroy
    discussion_lock = DiscussionLock.find(params[:id])

    authorize discussion_lock
    article = discussion_lock.article

    if discussion_lock.destroy
      bust_article_cache(article)

      flash[:success] = I18n.t("discussion_locks_controller.unlocked")
    else
      flash[:error] = I18n.t("errors.messages.general", errors: @discussion_lock.errors_as_sentence)
    end