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: assessment.rb
    path of file: ./repos/coursemology2/app/models/course/condition
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
class Course::Condition::Assessment < ApplicationRecord
  include ActiveSupport::NumberHelper
  include DuplicationStateTrackingConcern
  acts_as_condition

  # Trigger for evaluating the satisfiability of conditionals for a course user
  Course::Assessment::Submission.after_save do |submission|
    Course::Condition::Assessment.on_dependent_status_change(submission)
  end

  validate :validate_assessment_condition, if: :assessment_id_changed?
  validates :assessment, presence: true
  validates :minim
    
  def title
    if minimum_grade_percentage
      minimum_grade_percentage_display = number_to_percentage(minimum_grade_percentage,
                                                              precision: 2,
                                                              strip_insignificant_zeros: true)
      self.class.human_attribute_name('title.minimum_score',
                                      assessment_title: assessment.title,
                                      minimum_grade_percentage: minimum_grade_percentage_display)
    else
      self.class.human_attribute_name('title.complete',
                                      assessment_title: assessment.title)
    end