diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-17 22:54:20 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-17 22:54:27 -0300 |
commit | 336f973763dea0dc5d7f833fa0090e513503b19d (patch) | |
tree | 52e2b30a5010a402e1e8591492648363afae5af9 | |
parent | 57aaaa61977e82b9de2c43c26b00e636030685c4 (diff) | |
download | rails-336f973763dea0dc5d7f833fa0090e513503b19d.tar.gz rails-336f973763dea0dc5d7f833fa0090e513503b19d.tar.bz2 rails-336f973763dea0dc5d7f833fa0090e513503b19d.zip |
No need to create a SafeBuffer since form_tag_html always rerturn a SafeBuffer
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index e3ad96ec1b..c16c4641c4 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -641,8 +641,7 @@ module ActionView def form_tag_in_block(html_options, &block) content = capture(&block) - output = ActiveSupport::SafeBuffer.new - output.safe_concat(form_tag_html(html_options)) + output = form_tag_html(html_options) output << content output.safe_concat("</form>") end |