diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-08-01 12:14:03 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-08-15 13:18:15 -0500 |
commit | abf2dcd25c4a176801314872733ede91297d1ab0 (patch) | |
tree | 581aceab4c6a341bb6532145a1907ed4b9a25760 /app/models/spam_log.rb | |
parent | 64ab2b3d9f10366249c03a6bcf5e8b1d20010d8f (diff) | |
download | gitlab-ce-abf2dcd25c4a176801314872733ede91297d1ab0.tar.gz |
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.
Diffstat (limited to 'app/models/spam_log.rb')
-rw-r--r-- | app/models/spam_log.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/spam_log.rb b/app/models/spam_log.rb index 12df68ef83b..3b8b9833565 100644 --- a/app/models/spam_log.rb +++ b/app/models/spam_log.rb @@ -7,4 +7,8 @@ class SpamLog < ActiveRecord::Base user.block user.destroy end + + def text + [title, description].join("\n") + end end |