remove redundant calls to stringify_keys
This commit is contained in:
parent
ae1e70cf80
commit
1f270e80e6
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user