BigW Consortium Gitlab

spam_log.rb 262 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.delete_async(deleted_by: deleted_by, params: { hard_delete: true })
8
  end
9 10 11 12

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