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: active_model_name.rb
    path of file: ./repos/hitobito/config/initializers
    
    the code of the file until where you have to start completion: # frozen_string_literal: tru
    
      def initialize(*args)
        super(*args)
        return if IGNORED.include?(@klass.to_s)
        return unless @klass < ActiveRecord::Base

        if @klass.respond_to?(:base_class) && @klass != @klass.base_class
          base_name = @klass.base_class.model_name
          @param_key = base_name.param_key
          @route_key = base_name.route_key
          @singular_route_key = base_name.singular_route_key
        elsif @klass.try(:demodulized_route_keys)
          @route_key = ActiveSupport::Inflector.pluralize(name.demodulize.underscore).freeze
          @singular_route_key = ActiveSupport::Inflector.singularize(@route_key).freeze
        end