提交 75981554 编写于 作者: W Waynn Lue 提交者: Xavier Noria

remove redundant calls to stringify_keys

上级 48fce08b
......@@ -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.
先完成此消息的编辑!
想要评论请 注册