mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:31:42 +00:00
no instanciar un array vacío
This commit is contained in:
parent
55b5808a66
commit
a547400b9d
1 changed files with 2 additions and 2 deletions
|
@ -114,11 +114,11 @@ class Site < ApplicationRecord
|
|||
end
|
||||
|
||||
def invitade?(usuarie)
|
||||
!invitades.where(id: usuarie).empty?
|
||||
!invitades.find_by(id: usuarie.id).nil?
|
||||
end
|
||||
|
||||
def usuarie?(usuarie)
|
||||
!usuaries.where(id: usuarie).empty?
|
||||
!usuaries.find_by(id: usuarie.id).nil?
|
||||
end
|
||||
|
||||
# Este sitio acepta invitades?
|
||||
|
|
Loading…
Reference in a new issue