diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-12-18 12:14:24 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-12-18 20:18:47 +0100 |
commit | b64467ecad9cfa450ec172f59d656c3baced57e6 (patch) | |
tree | 06fd9d3708cf34cc8d1df05081b215593cf3cd6f /Gemfile | |
parent | 4c5f1bc9d45eb721dfd942cbd1c4e837fdd01038 (diff) | |
download | rails-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 'Gemfile')
0 files changed, 0 insertions, 0 deletions