Permalink
Browse files

remove redundant calls to stringify_keys

  • Loading branch information...
1 parent ae1e70c commit 1f270e80e61570faafc7cc01c1ed19c1c5359ef3 @waynn waynn committed Jul 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 1f270e8

Please sign in to comment.