summaryrefslogtreecommitdiff
path: root/app/services/issues
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-08-09 12:43:47 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-08-15 17:20:57 -0500
commit5994c11910822463faeabb7b5f11d6529036db9d (patch)
treea80a8ffea4d4ef868790aab627abfcaa1c982d10 /app/services/issues
parent43e756d4eafd79f4d2f366b646ebb94af78b5a4c (diff)
downloadgitlab-ce-5994c11910822463faeabb7b5f11d6529036db9d.tar.gz
Further refactor and syntax fixes.
Diffstat (limited to 'app/services/issues')
-rw-r--r--app/services/issues/create_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/issues/create_service.rb b/app/services/issues/create_service.rb
index 67125d5c0e4..65550ab8ec6 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_service.check(@api, @request)
+ @issue.spam = spam_service.check(@api)
if @issue.save
@issue.update_attributes(label_ids: label_params)
@@ -26,7 +26,7 @@ module Issues
private
def spam_service
- SpamService.new(@issue)
+ SpamService.new(@issue, @request)
end
def user_agent_detail_service