use explicit check in User#disconnect_everyone, the previous check failed in rarly weired situations, I can't tell why
This commit is contained in:
parent
eddd8d969f
commit
5c4979ccf0
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
def disconnect_everyone
|
||||
Contact.unscoped.where(:user_id => self.id).each { |contact|
|
||||
if contact.person.owner_id
|
||||
unless contact.person.owner.nil?
|
||||
contact.person.owner.disconnected_by self.person
|
||||
remove_contact(contact)
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue