diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 18:08:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-24 18:08:44 +0300 |
commit | 120f4aaedc8fe830a3f572491d240d8ee6addefb (patch) | |
tree | a2138baa55dfa67d292fb1a83ce686ee7f5d10a5 /lib/banzai.rb | |
parent | 729e3765d5feb762df1ccfbc228a8dd4662aa3f9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/banzai.rb')
-rw-r--r-- | lib/banzai.rb | 4 |
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 |