# frozen_string_literal: true module EuchreCamp module Actions module Admin module Tournaments class Index < EuchreCamp::Action include Deps[repo: 'repositories.events'] def handle(_request, response) upcoming = repo.upcoming completed = repo.completed response.render(view, upcoming: upcoming, completed: completed) end end end end end end