aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-12-18 12:14:24 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-12-18 20:18:47 +0100
commitb64467ecad9cfa450ec172f59d656c3baced57e6 (patch)
tree06fd9d3708cf34cc8d1df05081b215593cf3cd6f /actionpack
parent4c5f1bc9d45eb721dfd942cbd1c4e837fdd01038 (diff)
downloadrails-b64467ecad9cfa450ec172f59d656c3baced57e6.tar.gz
rails-b64467ecad9cfa450ec172f59d656c3baced57e6.tar.bz2
rails-b64467ecad9cfa450ec172f59d656c3baced57e6.zip
Make attributes output in html opt-in.
By using `except` any option provided to `form_with` would become an html attribute unless explicitly opted out. This proved annoying when adding new internal keys in the options hash and seeing them pop up in the html output. Prevent this by inverting the `except` to `slice` out the keys we want to allow becoming html attributes, like id and class.
Diffstat (limited to 'actionpack')
0 files changed, 0 insertions, 0 deletions