module Admin class DashboardController < Admin::BaseController def index @teams = Team.includes(:matches).order(:name) @active_sessions = StreamSession.where(status: %w[live reconnecting connecting]).includes(:match) end end end