module ApplicationHelper
  def md5 string
    Digest::MD5.hexdigest string
  end

  def assign_class requirement, acquirement
    if requirement.level > (acquirement.level + 1)
      "not-accomplished"
    elsif requirement.level <= acquirement.level
      "accomplished"
    else
      "almost-accomplished"
    end
  end
end

module ApplicationHelper
  def md5 string
    Digest::MD5.hexdigest string
  end

  def assign_class requirement, acquirement
    if acquirement.nil? || requirement.level > (acquirement.level + 1)
      "not-accomplished"
    elsif requirement.level <= acquirement.level
      "accomplished"
    else
      "almost-accomplished"
    end
  end
end

Fix assign class to requirements.
Fix assign class to requirements.

If the hacker doesn't have the requirement needed the class it will be
"not-accomplished".
