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: monthly_activities_controller.rb
    path of file: ./repos/circulate/app/controllers/admin/reports
    
    the code of the file until where you have to start completion: module Admin
  module Reports
    class MonthlyActivitiesController < BaseController
      def index
        fetch_monthly_activities
      end

      def fetch_monthly_activities
        @monthly_activities = {}

       
    
      def fetch_monthly_activities
        @monthly_activities = {}

        # TODO: load_async in Rails 7
        appointments = MonthlyAppointment.all
        loans = MonthlyLoan.all
        members = MonthlyMember.all

        assign_monthlies(appointments, %i[appointments_count completed_appointments_count])
        assign_monthlies(loans, %i[loans_count active_members_count])
        assign_monthlies(members, %i[new_members_count pending_members_count])

        @monthly_activities = @monthly_activities.sort.to_h
      end