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: user_invitations_controller.rb
    path of file: ./repos/coursemology2/app/controllers/course
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
class Course::UserInvitationsController < Course::C
    
  def resend_invitations_success
    respond_to do |format|
      format.json do
        render partial: 'course_user_invitation_list', locals: { invitations: @invitations.reload }, status: :ok
      end
    end
  end