diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2014-12-14 09:35:49 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2014-12-14 09:35:49 -0200 |
commit | 870519395f4adfcfe35054b76d3db24662871569 (patch) | |
tree | 676af19038f69e418d8bd168b4158f1b1e4efb43 /actionview/lib/action_view | |
parent | ef99d4cd3ecc58a8c1484740b2fb5447dbda23ab (diff) | |
parent | c2fe0938d7201d4ce0bb2f25e72bf5f70df128af (diff) | |
download | rails-870519395f4adfcfe35054b76d3db24662871569.tar.gz rails-870519395f4adfcfe35054b76d3db24662871569.tar.bz2 rails-870519395f4adfcfe35054b76d3db24662871569.zip |
Merge pull request #18024 from carpodaster/fix/actionview/capture-non-strings
Re-enable capture'ing non-String values
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/helpers/capture_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/capture_helper.rb b/actionview/lib/action_view/helpers/capture_helper.rb index 75d1634b2e..7884e4f1f1 100644 --- a/actionview/lib/action_view/helpers/capture_helper.rb +++ b/actionview/lib/action_view/helpers/capture_helper.rb @@ -36,7 +36,7 @@ module ActionView def capture(*args) value = nil buffer = with_output_buffer { value = yield(*args) } - if string = buffer.presence || value and string.is_a?(String) + if string = buffer.presence || value ERB::Util.html_escape string end end |