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: application_record.rb
    path of file: ./repos/forem/app/models
    
    the code of the file until where you have to start completion: class ApplicationRecord < ActiveRecord::Base
  self.abstract_class = true

  include Purgeable

  # see
    
  def self.decorator_class(called_on = self)
    prefix = respond_to?(:model_name) ? model_name : name
    decorator_name = "#{prefix}Decorator"
    decorator_name_constant = decorator_name.safe_constantize
    return decorator_name_constant unless decorator_name_constant.nil?

    return superclass.decorator_class(called_on) if superclass.respond_to?(:decorator_class)

    raise UninferrableDecoratorError,
          I18n.t("models.application_record.uninferrable", class: called_on.class.name)
  end