Files
euchre_camp/app/actions/players/rankings.rb
T
david 1268889a78 Add Elo rating system with match entry and CSV upload
- Implement EloCalculator service for 2v2 Euchre matches
- Create background job processing with GoodJob
- Add single match entry form
- Add CSV upload for batch match entry
- Create player rankings view
- Add database schema for matches and elo snapshots
2026-03-26 16:28:24 -07:00

18 lines
420 B
Ruby

# frozen_string_literal: true
module EuchreCamp
module Actions
module Players
class Rankings < EuchreCamp::Action
include Deps[repo: 'repositories.players']
def handle(_request, response)
# Get all players and sort by current Elo
players = repo.all.sort_by { |p| -p.current_elo }
response.render(view, players: players)
end
end
end
end
end