From 77fa19dee7ed6e7bdc38cbec7e9275787aa34828 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Thu, 24 Oct 2019 17:03:53 -0700 Subject: [PATCH] Find first empty seat --- app/controllers/tables_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/tables_controller.rb b/app/controllers/tables_controller.rb index 628d51f7..cff7b2ca 100644 --- a/app/controllers/tables_controller.rb +++ b/app/controllers/tables_controller.rb @@ -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