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: action_text_attribute_patch.rb
    path of file: ./repos/motor-admin-rails/lib/motor/active_record_utils
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

if defined?(ActionText::Attribute)
  ActionText::Attribute::ClassMethods.prepend(Modul
    
    def has_rich_text(*args)
      super

      name = args.first

      alias_method :"#{name}_body=", :"#{name}="

      define_method(:"#{name}_body") do
        send(name).body&.to_trix_html
      end
    end