gitlab-org--gitlab-foss/app/models/spam_log.rb
2017-06-05 13:08:06 +01:00

13 lines
262 B
Ruby

class SpamLog < ActiveRecord::Base
belongs_to :user
validates :user, presence: true
def remove_user(deleted_by:)
user.delete_async(deleted_by: deleted_by, params: { hard_delete: true })
end
def text
[title, description].join("\n")
end
end