diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-06-27 20:33:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-27 20:33:04 +0200 |
commit | 5ce304af9691371129d7a0c03e0e32c06f242c5e (patch) | |
tree | 544fab93937e39f8b6c4219a0091cb701fc6535c /actionview/lib/action_view/helpers/form_options_helper.rb | |
parent | ffded19faf497c0a0bb392c07f98d9eee62f6925 (diff) | |
parent | a65a3bde0bee7d3d28c30775ec955260ed61e96c (diff) | |
download | rails-5ce304af9691371129d7a0c03e0e32c06f242c5e.tar.gz rails-5ce304af9691371129d7a0c03e0e32c06f242c5e.tar.bz2 rails-5ce304af9691371129d7a0c03e0e32c06f242c5e.zip |
Merge pull request #25543 from marekkirejczyk/tag_builder_25195
New syntax for tag helpers i.e. tag.br instead of tag('br') #25195
Diffstat (limited to 'actionview/lib/action_view/helpers/form_options_helper.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/form_options_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb index b277efd7b6..06b696f281 100644 --- a/actionview/lib/action_view/helpers/form_options_helper.rb +++ b/actionview/lib/action_view/helpers/form_options_helper.rb @@ -363,7 +363,7 @@ module ActionView html_attributes[:disabled] ||= disabled && option_value_selected?(value, disabled) html_attributes[:value] = value - content_tag_string(:option, text, html_attributes) + tag_builder.content_tag_string(:option, text, html_attributes) end.join("\n").html_safe end |