diff options
author | Yurii Cherniavskyi <ych@devlab21.com> | 2018-07-20 23:21:02 +0300 |
---|---|---|
committer | Yurii Cherniavskyi <ych@devlab21.com> | 2018-07-20 23:21:02 +0300 |
commit | d4a4a6f11814649bf3c628492ff7ac45a6d2b610 (patch) | |
tree | 0ae9fece596914d957f517f49d1bdd2fe68b342b /actionview/lib/action_view/helpers/tags/select.rb | |
parent | 7b3ead3b26682ee331e0e67eb4e3962742f9aa5e (diff) | |
download | rails-d4a4a6f11814649bf3c628492ff7ac45a6d2b610.tar.gz rails-d4a4a6f11814649bf3c628492ff7ac45a6d2b610.tar.bz2 rails-d4a4a6f11814649bf3c628492ff7ac45a6d2b610.zip |
Fix leaking special form_with attributes into html attributes
Special form_with attributes `skip_default_ids` and `allow_method_names_outside_object`
attributes are leaking into html attributes of option select tag helpers.
Diffstat (limited to 'actionview/lib/action_view/helpers/tags/select.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/select.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/select.rb b/actionview/lib/action_view/helpers/tags/select.rb index 345484ba92..790721a0b7 100644 --- a/actionview/lib/action_view/helpers/tags/select.rb +++ b/actionview/lib/action_view/helpers/tags/select.rb @@ -8,7 +8,7 @@ module ActionView @choices = block_given? ? template_object.capture { yield || "" } : choices @choices = @choices.to_a if @choices.is_a?(Range) - @html_options = html_options.except(:skip_default_ids, :allow_method_names_outside_object) + @html_options = html_options super(object_name, method_name, template_object, options) end |