Skip to content
Browse files

Merge pull request #2354 from waynn/patch-1

remove redundant calls to stringify_keys
  • Loading branch information...
2 parents ae1e70c + 1f270e8 commit 2b925e8201b3f46860a26f3b801f4fffbc120724 @spastorino spastorino committed Jul 29, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
4 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -417,7 +417,7 @@ def submit_tag(value = "Save changes", options = {})
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 @@ def image_submit_tag(source, options = {})
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.

0 comments on commit 2b925e8

Please sign in to comment.
Something went wrong with that request. Please try again.