summaryrefslogtreecommitdiff
path: root/app/models/spam_log.rb
blob: 12df68ef83bf17771b16f079216c9b9fe3cd3a97 (plain)
1
2
3
4
5
6
7
8
9
10
class SpamLog < ActiveRecord::Base
  belongs_to :user

  validates :user, presence: true

  def remove_user
    user.block
    user.destroy
  end
end