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: hints.rb
    path of file: ./repos/bootstrap_form/lib/bootstrap_form/components
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module BootstrapForm
  module Components

    
      def get_help_text_by_i18n_key(name)
        return unless object

        partial_scope = if object_class.respond_to?(:model_name)
                          object_class.model_name.name
                        else
                          object_class.name
                        end