summaryrefslogtreecommitdiff
path: root/app/models/spam_log.rb
blob: 3b8b9833565100bd0b091085b4b0b5763442f42e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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