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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-24 18:08:44 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-24 18:08:44 +0300
commit120f4aaedc8fe830a3f572491d240d8ee6addefb (patch)
treea2138baa55dfa67d292fb1a83ce686ee7f5d10a5 /lib/banzai.rb
parent729e3765d5feb762df1ccfbc228a8dd4662aa3f9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/banzai.rb')
-rw-r--r--lib/banzai.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/banzai.rb b/lib/banzai.rb
index 1eb41ff7133..f183d409704 100644
--- a/lib/banzai.rb
+++ b/lib/banzai.rb
@@ -8,6 +8,10 @@ module Banzai
post_process(render(text, context), context)
end
+ def self.render_field_and_post_process(object, field, context = {})
+ post_process(render_field(object, field, context), context)
+ end
+
def self.render(text, context = {})
Renderer.render(text, context)
end