aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-06-02 16:43:47 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-06-02 16:43:47 -0700
commite2a97adbae6c90b1a749d28ed9aae1f83ec524e9 (patch)
treee97a940b72a2b15a93fa2c366faae2734e051263 /actionview/lib/action_view/helpers/form_helper.rb
parent8899503f62a556a918c45b3e7b5c2effaaa943f4 (diff)
downloadrails-e2a97adbae6c90b1a749d28ed9aae1f83ec524e9.tar.gz
rails-e2a97adbae6c90b1a749d28ed9aae1f83ec524e9.tar.bz2
rails-e2a97adbae6c90b1a749d28ed9aae1f83ec524e9.zip
call `capture` fewer times from `form_for`
Diffstat (limited to 'actionview/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index 180c4a62bf..789a413c8d 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -434,7 +434,8 @@ module ActionView
output = capture(builder, &block)
html_options[:multipart] ||= builder.multipart?
- form_tag(options[:url] || {}, html_options) { output }
+ html_options = html_options_for_form(options[:url] || {}, html_options)
+ form_tag_with_body(html_options, output)
end
def apply_form_for_options!(record, object, options) #:nodoc: