class SelectOptionsController < ApplicationController
    def index
      @tournaments = policy_scope(Tournament).order('starts_at DESC')

      @tournaments = @tournaments.search(search_query) if search_query