diff options
author | Toon Claes <toon@gitlab.com> | 2017-04-24 12:36:59 +0200 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-04-27 13:22:17 +0200 |
commit | 5473f3dcd6d6e0c975f32f336e08a9735af8cc58 (patch) | |
tree | 9659c92ae03154cf9df688ac9d780094f8e2f1da | |
parent | af114f1280adc19b2b017eef85a980c1ae079101 (diff) | |
download | gitlab-ce-5473f3dcd6d6e0c975f32f336e08a9735af8cc58.tar.gz |
Add commit to the Banzai::post_process context
-rw-r--r-- | app/helpers/markup_helper.rb | 5 |
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) |