Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base
2019-03-28 16:18:23 +00:00
gfyoung
50abbd3e53
Enable frozen string in app/models/*.rb
...
Partially addresses #47424 .
2018-07-26 16:55:41 -07:00
Nick Thomas
158581a447
Refactor the DeleteUserWorker
2017-06-05 13:08:06 +01:00
Stan Hu
fd60561936
Use DeleteUserWorker for removing users via spam logs
...
Before deleting a user via a SpamLog would just call `user.destroy`,
which may omit other things that need to be cleaned up.
2017-04-17 17:17:31 -07:00
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
Jeroen van Baarsen
f1479b56b7
Remove the annotate gem and delete old annotations
...
In 8278b763d9
the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.
Fixes : #17382
2016-05-09 18:00:28 +02:00
Zeger-Jan van de Weg
47da013cf8
Annotate the models
2016-05-06 08:27:46 +02:00
Douglas Barbosa Alexandre
718b1dddfe
Refactor Admin::SpamLogsController to block user before destroying
2016-02-02 11:25:44 -02:00
Douglas Barbosa Alexandre
64c9768bd6
Use truncate helper on spam logs list
2016-02-02 11:25:44 -02:00
Stan Hu
d20e75a8d8
Support Akismet spam checking for creation of issues via API
...
Currently any spam detected by Akismet by non-members via API will be logged
in a separate table in the admin page.
Closes #5612
2016-02-02 11:25:44 -02:00