blob: e6e8543249c3368f67f8fe3d1f4680666ee1d789 (
plain)
1
2
3
4
5
6
7
8
9
|
# frozen_string_literal: true
class LeaderboardController < ApplicationController
def index
@top_per_skill = Hash[Skill.all.map { |s| [s.name.to_sym, CharacterSkill.top_xp_for(s)] }]
@top_total_xp = Character.top_total_xp
@top_total_level = Character.top_total_level
end
end
|