X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/88cf87c910365ce75629afd5b575f0c0817b2965..0dc14b6e79aa3e1c91a6f30d72c5f8c673633987:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 8f02e35cf..8c75b4ef4 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -45,7 +45,6 @@ class User < ApplicationRecord require "digest" - require "xml/libxml" has_many :traces, -> { where(:visible => true) } has_many :diary_entries, -> { order(:created_at => :desc) } @@ -242,8 +241,8 @@ class User < ApplicationRecord end ## - # delete a user - leave the account but purge most personal data - def delete + # destroy a user - leave the account but purge most personal data + def destroy avatar.purge_later self.display_name = "user_#{id}"