BigW Consortium Gitlab

spam_log.rb 204 Bytes
class SpamLog < ActiveRecord::Base
  belongs_to :user

  validates :user, presence: true

  def remove_user
    user.block
    user.destroy
  end

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