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: groups_controller.rb
    path of file: ./repos/classroom/app/controllers/stafftools
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Stafftools
  class GroupsController < StafftoolsControl
    
    def show; end

    def destroy
      grouping = @group.grouping

      if @group.destroy
        flash[:success] = "Group was destroyed"
        redirect_to stafftools_grouping_path(grouping.id)
      else
        flash[:error] = "Group was not destroyed"
        render :show
      end
    end