app/models/project.rb
# Update the badge percentages for all levels.
Update the badge percentages for all levels.
Update the badge percentages for all levels .
def update_badge_percentages
    current_time = Time.now.utc
    Project::LEVEL_IDS.each do |level|
      update_badge_percentage(level, current_time)
    end
    update_tiered_percentage 
  end
def update_badge_percentages current_time = Time . now . utc Project :: LEVEL_IDS . each do | level | update_badge_percentage ( level , current_time ) end update_tiered_percentage end
Update the badge percentages for all levels.
Update the badge percentages for all levels .
# Create a single datetime value so that they are consistent # Update the 'tiered_percentage' number 0..300