提交 2b925e82 编写于 作者: S Santiago Pastorino

Merge pull request #2354 from waynn/patch-1

remove redundant calls to stringify_keys
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册