module ApplicationHelper

  def progress_percentage(percentage)
    if percentage.to_i < 10
      "progress-danger"
    elsif percentage.to_i > 10 && percentage.to_i < 40
      "progress-warning"
    else
      "progress-info"
    end
  end
end

module ApplicationHelper

  def progress_percentage(percentage)
    if percentage.to_i < 10
      "progress-danger"
    elsif percentage.to_i > 10 && percentage.to_i < 40
      "progress-warning"
    elsif percentage.to_i > 100
      "progress-success"
    else
      "progress-info"
    end
  end
end

Add a progress for 100 percent
Add a progress for 100 percent
