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:
authorToon Claes <toon@gitlab.com>2017-04-24 13:36:59 +0300
committerToon Claes <toon@gitlab.com>2017-04-27 14:22:17 +0300
commit5473f3dcd6d6e0c975f32f336e08a9735af8cc58 (patch)
tree9659c92ae03154cf9df688ac9d780094f8e2f1da /app/helpers/markup_helper.rb
parentaf114f1280adc19b2b017eef85a980c1ae079101 (diff)
Add commit to the Banzai::post_process context
Diffstat (limited to 'app/helpers/markup_helper.rb')
-rw-r--r--app/helpers/markup_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/markup_helper.rb b/app/helpers/markup_helper.rb
index 3b08b0447b2..b41f76450db 100644
--- a/app/helpers/markup_helper.rb
+++ b/app/helpers/markup_helper.rb
@@ -233,9 +233,10 @@ module MarkupHelper
current_user: (current_user if defined?(current_user)),
# RelativeLinkFilter
- requested_path: @path,
+ commit: @commit,
project_wiki: @project_wiki,
- ref: @ref
+ ref: @ref,
+ requested_path: @path
)
Banzai.post_process(html, context)