debian-mirror-gitlab/app/models/spam_log.rb
2019-07-07 11:18:12 +05:30

15 lines
292 B
Ruby

# frozen_string_literal: true
class SpamLog < ApplicationRecord
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