summaryrefslogtreecommitdiff
path: root/lib/redcarpet
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-27 11:12:12 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-27 11:12:12 +0200
commitc94dc3de787c301a7d0d0ca62b475d2ecbfa4630 (patch)
tree815d824b293659ccfdda9d0994b8c57748056ab3 /lib/redcarpet
parent4d896a2b8679eca3777b9d11b91cdd9d1dd72b0e (diff)
downloadgitlab-ce-c94dc3de787c301a7d0d0ca62b475d2ecbfa4630.tar.gz
html_escape is private for rails 4.0.2 :(
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/redcarpet')
-rw-r--r--lib/redcarpet/render/gitlab_html.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb
index 0fe2f48b322..2e18b0592b5 100644
--- a/lib/redcarpet/render/gitlab_html.rb
+++ b/lib/redcarpet/render/gitlab_html.rb
@@ -24,7 +24,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
<div class="highlighted-data #{h.user_color_scheme_class}">
<div class="highlight">
- <pre><code class="#{language}">#{h.html_escape(code)}</code></pre>
+ <pre><code class="#{language}">#{h.send(:html_escape, code)}</code></pre>
</div>
</div>