destroy the identities associated with an user when the user deletes his account

This commit is contained in:
kikito
2016-04-18 18:43:28 +02:00
parent 581253219b
commit e6c42860a7

View File

@@ -154,6 +154,7 @@ class User < ActiveRecord::Base
confirmed_phone: nil,
unconfirmed_phone: nil
)
self.identities.destroy_all
end
def erased?