diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-07-28 19:02:56 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-08-15 13:18:15 -0500 |
commit | 722fc84e3d4785fb3a9db5f1c7d2aabad22e8e01 (patch) | |
tree | bc87237d15d15216cb6b59af27eee36278e7b962 /app/services/issues | |
parent | 95419679f23f0628d1885dd9656cc159e9d55ea9 (diff) | |
download | gitlab-ce-722fc84e3d4785fb3a9db5f1c7d2aabad22e8e01.tar.gz |
Complete refactor of the `Spammable` concern and tests:
- Merged `AkismetSubmittable` into `Spammable`
- Clean up `SpamCheckService`
- Added tests for `Spammable`
- Added submit (ham or spam) options to `AkismetHelper`
Diffstat (limited to 'app/services/issues')
-rw-r--r-- | app/services/issues/create_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/issues/create_service.rb b/app/services/issues/create_service.rb index 8e9d74103c7..d580834be83 100644 --- a/app/services/issues/create_service.rb +++ b/app/services/issues/create_service.rb @@ -8,7 +8,7 @@ module Issues issue = project.issues.new(params) issue.author = params[:author] || current_user - issue.spam = spam_check_service.execute(request, api) + issue.spam = spam_check_service.execute(request, api, issue) if issue.save issue.update_attributes(label_ids: label_params) |