Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-10-19 01:10:31 +0300
committerStan Hu <stanhu@gmail.com>2016-10-19 02:29:33 +0300
commit8989baaae7091832855b976b0eeda32d8b545dcb (patch)
treecfe5a85971d47f4496b53bccb4e8c5a16bb95cb5 /app/helpers/award_emoji_helper.rb
parentfc0ad48b202ae9c4ef2af5716c08490e38a27609 (diff)
Fix broken award emoji for comments
Closes #23506
Diffstat (limited to 'app/helpers/award_emoji_helper.rb')
-rw-r--r--app/helpers/award_emoji_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/award_emoji_helper.rb b/app/helpers/award_emoji_helper.rb
index 493f14f6f9d..592ffe7b89f 100644
--- a/app/helpers/award_emoji_helper.rb
+++ b/app/helpers/award_emoji_helper.rb
@@ -4,7 +4,7 @@ module AwardEmojiHelper
if awardable.is_a?(Note)
# We render a list of notes very frequently and calling the specific method is a lot faster than the generic one (6.5x)
- toggle_award_emoji_namespace_project_note_url(namespace_id: @project.namespace_id, project_id: @project.id, id: awardable.id)
+ toggle_award_emoji_namespace_project_note_url(namespace_id: @project.namespace, project_id: @project, id: awardable.id)
else
url_for([:toggle_award_emoji, @project.namespace.becomes(Namespace), @project, awardable])
end