diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 5c004b9f84f42..8da17b0982b3a 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,21 @@ +* `button_to` now accepts a `button_tag:` option, to override the `button_to_generates_button_tag` config + + ```ruby + # With config.action_view.button_to_generates_button_tag = false + + button_to("Save", "http://www.example.com", button_tag: true) # renders }, + button_to("Save", "http://www.example.com", button_tag: true) + ) + ensure + ActionView::Helpers::UrlHelper.button_to_generates_button_tag = old_value + end + def test_button_to_with_content_exfiltration_prevention with_prepend_content_exfiltration_prevention(true) do assert_dom_equal(