Permalink
Browse files

Call as ERB::Util.html_escape since is not the module is not included…

… here
  • Loading branch information...
1 parent bb9c58e commit 72d12d94559f7c124fa2ec88eb668ad2948c02f4 @spastorino spastorino committed Nov 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/capture_helper.rb
@@ -39,7 +39,7 @@ def capture(*args)
value = nil
buffer = with_output_buffer { value = yield(*args) }
if string = buffer.presence || value and string.is_a?(String)
- html_escape string
+ ERB::Util.html_escape string
end
end

0 comments on commit 72d12d9

Please sign in to comment.