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: public_new_defaults.rb
    path of file: ./repos/archivesspace/public/config/initializers
    
    the code of the file until where you have to start completion: #require "memoryleak"
# require 'pp'
module PublicNewDefaults
#  pp "initializing resources"
# FIXME do we need to do this in the intializer?
#  Repository.set_repos(ArchivesSpaceClient.new.list_repositories)

# determining the main menu
 
    
  def self.add_record_page_action_erb(record_types, erb_partial, position = nil)
    action = {
      'erb_partial' => erb_partial,
    }

    ASUtils.wrap(record_types).each do |record_type|
      $RECORD_PAGE_ACTIONS[record_type] ||= []
      if (position.nil?)
        $RECORD_PAGE_ACTIONS[record_type] << action
      else
        $RECORD_PAGE_ACTIONS[record_type].insert(position, action)
      end
    end