about summary refs log tree commit diff stats
path: root/app/controllers/games_controller.rb
blob: 8ddcf2419104ad047b5ca45e95da0927ea4610a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
class GamesController < ApplicationController
  def index
    @games = Game.order(started_on: :desc)

    if params[:status]
      @games = @games.where(status: params[:status])
    end
  end
end