summaryrefslogtreecommitdiff
path: root/app/services/issues
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-07-28 19:02:56 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-08-15 13:18:15 -0500
commit722fc84e3d4785fb3a9db5f1c7d2aabad22e8e01 (patch)
treebc87237d15d15216cb6b59af27eee36278e7b962 /app/services/issues
parent95419679f23f0628d1885dd9656cc159e9d55ea9 (diff)
downloadgitlab-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.rb2
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)