blob: 14b8acb0ddc00a6a116ba22aa0b0f91038b67783 (
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.order(:name).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
|