Method must return boolean, not nil

This commit is contained in:
Jesse C. Fisher 2021-11-10 21:36:11 -08:00
parent 69e8e06975
commit 614a53b253

View File

@ -62,7 +62,7 @@ class Seat < ActiveRecord::Base
end
def occupied?
self.user_id.present? || self.user_soft_token.present? || self.try("player").try("is_bot?")
self.user_id.present? || self.user_soft_token.present? || self.try("player").try("is_bot?") == true
end
def occupied_by? user