BigW Consortium Gitlab

spam_log.rb 310 Bytes
Newer Older
1 2 3 4
class SpamLog < ActiveRecord::Base
  belongs_to :user

  validates :user, presence: true
5

6
  def remove_user(deleted_by:)
7
    user.block
8
    DeleteUserWorker.perform_async(deleted_by.id, user.id, delete_solo_owned_groups: true, hard_delete: true)
9
  end
10 11 12 13

  def text
    [title, description].join("\n")
  end
14
end