aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorGrzegorz Derebecki <grzegorz.derebecki@fdb.pl>2013-03-16 15:26:42 +0100
committerGrzegorz Derebecki <grzegorz.derebecki@fdb.pl>2013-03-17 10:51:08 +0100
commit3ab7ddb8daa1d1754a9de06ee3cbc790f2025144 (patch)
tree5bd997f65f22d4afa22063060bb9654c6b02aedd /actionpack/lib/action_view/helpers
parent9a421aaa8285cf2a7ecb1af370748b0337818930 (diff)
downloadrails-3ab7ddb8daa1d1754a9de06ee3cbc790f2025144.tar.gz
rails-3ab7ddb8daa1d1754a9de06ee3cbc790f2025144.tar.bz2
rails-3ab7ddb8daa1d1754a9de06ee3cbc790f2025144.zip
Allow pass multipart option to form_for
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 3dae1fc87a..6b6a7edc1d 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -433,7 +433,7 @@ module ActionView
builder = instantiate_builder(object_name, object, options)
output = capture(builder, &block)
- html_options[:multipart] = builder.multipart?
+ html_options[:multipart] ||= builder.multipart?
form_tag(options[:url] || {}, html_options) { output }
end