Sha256: b71a90dd032bc1ddc9b5027cc3ef42422f06fcebfc3b3020653d374107bb4d0f
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
require_dependency "competition/application_controller" module Competition class LeaderboardController < ApplicationController def index #TODO: Make this not suck @scores = Competition::Score.all.sort {|a, b| b.score_entries.sum(:amount) <=> a.score_entries.sum(:amount)} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Competition-0.0.2 | app/controllers/competition/leaderboard_controller.rb |