html_escape is private for rails 4.0.2 :(

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-02-27 11:12:12 +02:00
parent 4d896a2b86
commit c94dc3de78
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 1 deletions

View File

@ -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>