Class: SpamLog

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spam_log.rb

Overview

Schema Information

Table name: spam_logs

id            :integer          not null, primary key
user_id       :integer
source_ip     :string
user_agent    :string
via_api       :boolean
project_id    :integer
noteable_type :string
title         :string
description   :text
created_at    :datetime         not null
updated_at    :datetime         not null

Instance Method Summary collapse

Instance Method Details

#remove_userObject


23
24
25
26
# File 'app/models/spam_log.rb', line 23

def remove_user
  user.block
  user.destroy
end