diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-04-27 12:08:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 12:08:02 -0700 |
commit | 55e3476ece18f47c0469b7e7459b1f90322d0b32 (patch) | |
tree | f5df3ee11e4d73d2886bed9a4a6d75efb724cece /actionview/lib | |
parent | 6a3cb7a206e2f55128616035a480cd8a5ce58401 (diff) | |
parent | dc46a71e5409f2b0105cd964ff6a62edcb934795 (diff) | |
download | rails-55e3476ece18f47c0469b7e7459b1f90322d0b32.tar.gz rails-55e3476ece18f47c0469b7e7459b1f90322d0b32.tar.bz2 rails-55e3476ece18f47c0469b7e7459b1f90322d0b32.zip |
Merge pull request #28844 from kyuden/remove_unnecessary_attributes_of_select_in_form_with
Remove unnecessary `skip_default_ids` and `allow_method_names_outside_object` attributes of select tag in `form_with`
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/base.rb b/actionview/lib/action_view/helpers/tags/base.rb index 0895533a60..aa420c4b66 100644 --- a/actionview/lib/action_view/helpers/tags/base.rb +++ b/actionview/lib/action_view/helpers/tags/base.rb @@ -149,7 +149,7 @@ module ActionView end value = options.fetch(:selected) { value(object) } - select = content_tag("select", add_options(option_tags, options, value), html_options) + select = content_tag("select", add_options(option_tags, options, value), html_options.except!("skip_default_ids", "allow_method_names_outside_object")) if html_options["multiple"] && options.fetch(:include_hidden, true) tag("input", disabled: html_options["disabled"], name: html_options["name"], type: "hidden", value: "") + select |