debian-mirror-gitlab/app/models/spam_log.rb
2017-08-17 22:00:37 +05:30

14 lines
310 B
Ruby

class SpamLog < ActiveRecord::Base
belongs_to :user
validates :user, presence: true
def remove_user(deleted_by:)
user.block
DeleteUserWorker.perform_async(deleted_by.id, user.id, delete_solo_owned_groups: true, hard_delete: true)
end
def text
[title, description].join("\n")
end
end