gitlab-org--gitlab-foss/app/models/spam_log.rb
Patricio Cano abf2dcd25c Allow SpamLog to be submitted as ham
- Added `submitted_as_ham` to `SpamLog` to mark which logs have been submitted to Akismet.
- Added routes and controller action.
2016-08-15 13:18:15 -05:00

14 lines
204 B
Ruby

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