app/models/project.rb
# Compute the 'tiered percentage' value 0..300. This gives partial credit,
# but only if you've completed a previous level.
Compute the 'tiered percentage' value 0..300. This gives partial credit,
but only if you've completed a previous level.
Compute the ' tiered percentage ' value 0 .. 300 . This gives partial credit but only if you ' ve completed a previous level .
def compute_tiered_percentage
    if badge_percentage_0 < 100
      badge_percentage_0
    elsif badge_percentage_1 < 100
      badge_percentage_1 + 100
    else
      badge_percentage_2 + 200
    end
  end
def compute_tiered_percentage if badge_percentage_0 < 100 badge_percentage_0 elsif badge_percentage_1 < 100 badge_percentage_1 + 100 else badge_percentage_2 + 200 end end
Compute the 'tiered percentage' value 0..300.
Compute the ' tiered percentage ' value 0 .. 300 .