Method must return boolean, not nil
This commit is contained in:
parent
44a540cbe8
commit
149a915065
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user