BigW Consortium Gitlab

spam_log.rb 204 Bytes
Newer Older
1 2 3 4
class SpamLog < ActiveRecord::Base
  belongs_to :user

  validates :user, presence: true
5 6 7 8 9

  def remove_user
    user.block
    user.destroy
  end
10 11 12 13

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