aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-07-25 05:21:16 -0300
committerJosé Valim <jose.valim@gmail.com>2010-07-25 16:33:04 +0200
commitb1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf (patch)
tree459d52879fe866fe5321a730919a2ac6b7c55805 /actionpack/lib/action_view/helpers/form_tag_helper.rb
parent8d5b792e7dadf8b2f64b75b6fee51d15fde70699 (diff)
downloadrails-b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf.tar.gz
rails-b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf.tar.bz2
rails-b1cfcedc8f6dde3b0855fc8fd564e72e730ba5cf.zip
Change returning with tap
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb3
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 4c1b751160..9dac2d4538 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -1,6 +1,5 @@
require 'cgi'
require 'action_view/helpers/tag_helper'
-require 'active_support/core_ext/object/returning'
require 'active_support/core_ext/object/blank'
module ActionView
@@ -527,7 +526,7 @@ module ActionView
private
def html_options_for_form(url_for_options, options, *parameters_for_url)
- returning options.stringify_keys do |html_options|
+ options.stringify_keys.tap do |html_options|
html_options["enctype"] = "multipart/form-data" if html_options.delete("multipart")
# The following URL is unescaped, this is just a hash of options, and it is the
# responsability of the caller to escape all the values.