aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-07-29 17:39:20 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-07-29 17:39:20 -0700
commit2b925e8201b3f46860a26f3b801f4fffbc120724 (patch)
treeeca17065ca29e7d5a580b9a36892f02ff3d18256 /actionpack/lib/action_view/helpers/form_tag_helper.rb
parentae1e70cf803390edadf5263a1550c76dbcb3ca46 (diff)
parent1f270e80e61570faafc7cc01c1ed19c1c5359ef3 (diff)
downloadrails-2b925e8201b3f46860a26f3b801f4fffbc120724.tar.gz
rails-2b925e8201b3f46860a26f3b801f4fffbc120724.tar.bz2
rails-2b925e8201b3f46860a26f3b801f4fffbc120724.zip
Merge pull request #2354 from waynn/patch-1
remove redundant calls to stringify_keys
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb4
1 files changed, 2 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 822686b09d..79f07400b2 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -417,7 +417,7 @@ module ActionView
options["data-confirm"] = confirm
end
- tag :input, { "type" => "submit", "name" => "commit", "value" => value }.update(options.stringify_keys)
+ tag :input, { "type" => "submit", "name" => "commit", "value" => value }.update(options)
end
# Creates a button element that defines a <tt>submit</tt> button,
@@ -503,7 +503,7 @@ module ActionView
options["data-confirm"] = confirm
end
- tag :input, { "type" => "image", "src" => path_to_image(source) }.update(options.stringify_keys)
+ tag :input, { "type" => "image", "src" => path_to_image(source) }.update(options)
end
# Creates a field set for grouping HTML form elements.