aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view
diff options
context:
space:
mode:
authorkyuden <msmsms.um@gmail.com>2017-04-24 00:09:42 +0900
committerkyuden <msmsms.um@gmail.com>2017-04-24 10:25:40 +0900
commitdc46a71e5409f2b0105cd964ff6a62edcb934795 (patch)
treed8a806cf97aa774d8a88de3a4e863fd88f7d75bc /actionview/lib/action_view
parenta6a93f9ed5af5c84cf35dc03759c0b7d9d880cd2 (diff)
downloadrails-dc46a71e5409f2b0105cd964ff6a62edcb934795.tar.gz
rails-dc46a71e5409f2b0105cd964ff6a62edcb934795.tar.bz2
rails-dc46a71e5409f2b0105cd964ff6a62edcb934795.zip
Remove unnecessary `skip_default_ids` and `allow_method_names_outside_object` attributes of select tag in `form_with`
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r--actionview/lib/action_view/helpers/tags/base.rb2
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