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:
authorJarka Kadlecova <jarka@gitlab.com>2017-12-01 12:21:05 +0300
committerJarka Kadlecova <jarka@gitlab.com>2017-12-06 21:16:22 +0300
commit0c2fdb1c342fa5eb64bb0ed02091af3c06b37c0e (patch)
treea488e21ef204801bf52521965cc9f82502f96155 /app/helpers/markup_helper.rb
parent50eb125282ba83e71447161ee2add396fa5eef9b (diff)
Refactor banzai to support referencing from group context
Diffstat (limited to 'app/helpers/markup_helper.rb')
-rw-r--r--app/helpers/markup_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/markup_helper.rb b/app/helpers/markup_helper.rb
index 9d269cb65d6..5c9fb1fa0fc 100644
--- a/app/helpers/markup_helper.rb
+++ b/app/helpers/markup_helper.rb
@@ -86,6 +86,8 @@ module MarkupHelper
return '' unless text.present?
context[:project] ||= @project
+ context[:group] ||= @group
+
html = markdown_unsafe(text, context)
prepare_for_rendering(html, context)
end