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

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