Find first empty seat

This commit is contained in:
Jesse C. Fisher 2019-10-24 17:03:53 -07:00
parent 5ceee4bac4
commit 77fa19dee7

View File

@ -5,7 +5,7 @@ class TablesController < ApplicationController
def play_now
# First empty seat
@seat = Seat.where(player: nil).first
@seat = Seat.where(user_soft_token: nil).first
if @seat
@seat.sit current_user
else