# frozen_string_literal: true module EuchreCamp module Actions module Admin module Tournaments class Edit < EuchreCamp::Action include Deps[repo: 'repositories.events'] def handle(request, response) tournament_id = request.params[:id] tournament = repo.by_id(tournament_id) response.render(view, tournament: tournament) end end end end end end