diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-25 16:13:58 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-25 16:14:23 -0700 |
commit | f28340a5ef3dafd3f96e7032b6b21352ebd11f57 (patch) | |
tree | dddda0f5eb428c2ea896cd9fd5feb8263f0080cd /actionview/lib/action_view/helpers | |
parent | 0afbe74c3b813f998db94adbed2eaa63e3d62ec1 (diff) | |
download | rails-f28340a5ef3dafd3f96e7032b6b21352ebd11f57.tar.gz rails-f28340a5ef3dafd3f96e7032b6b21352ebd11f57.tar.bz2 rails-f28340a5ef3dafd3f96e7032b6b21352ebd11f57.zip |
:scissors:
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r-- | actionview/lib/action_view/helpers/form_tag_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb index 74cfec962e..5aeb138f7a 100644 --- a/actionview/lib/action_view/helpers/form_tag_helper.rb +++ b/actionview/lib/action_view/helpers/form_tag_helper.rb @@ -133,13 +133,12 @@ module ActionView option_tags ||= "" html_name = (options[:multiple] == true && !name.to_s.ends_with?("[]")) ? "#{name}[]" : name - if options.include?(:include_blank) include_blank = options.delete(:include_blank) if include_blank == true include_blank = '' end - + option_tags = content_tag(:option, include_blank, :value => '').safe_concat(option_tags) end |