Fix nil argument bug

This commit is contained in:
Jesse C. Fisher 2021-07-07 22:42:43 -07:00
parent 8685196ce9
commit 753acd9aee

View File

@ -25,6 +25,7 @@ class User < ActiveRecord::Base
end
def stand_from(table)
return if table == nil
@seats = []
if self.id
@seats << table.seats.where(user_id: self.id)