aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-11-02 20:02:13 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-02 20:02:13 -0200
commit72d12d94559f7c124fa2ec88eb668ad2948c02f4 (patch)
tree48d9e2506a1bfe59239a9e400df6ffd4da36d318 /actionpack/lib/action_view/helpers
parentbb9c58eb4aa637fa75c69c705a9918d6322ff834 (diff)
downloadrails-72d12d94559f7c124fa2ec88eb668ad2948c02f4.tar.gz
rails-72d12d94559f7c124fa2ec88eb668ad2948c02f4.tar.bz2
rails-72d12d94559f7c124fa2ec88eb668ad2948c02f4.zip
Call as ERB::Util.html_escape since is not the module is not included here
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/capture_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/capture_helper.rb b/actionpack/lib/action_view/helpers/capture_helper.rb
index 2c805c8ecf..c88bd1efd5 100644
--- a/actionpack/lib/action_view/helpers/capture_helper.rb
+++ b/actionpack/lib/action_view/helpers/capture_helper.rb
@@ -39,7 +39,7 @@ module ActionView
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