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: profile_validator.rb
    path of file: ./repos/forem/app/validators
    
    the code of the file until where you have to start completion: class ProfileValidator < ActiveModel::Validator
  SUMMARY_ATTRIBUTE = "summary".freeze
  MAX_SUMMARY_L
    
  def validate(record)
    # NOTE: The summary is a base profile field, which we add to all new Forem
    # instances, so it should be safe to validate. The method itself also guards
    # against the field's absence.
    if summary_too_long?(record)
      record.errors.add(:base,
                        message: I18n.t("validators.profile_validator.bio_too_long"))
    end