aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-25 16:14:28 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-10-25 16:20:41 -0700
commitb2278aa1a0c02f8793587f625900504b447b4517 (patch)
treeb517e6ae30c683351b6f47b103f9c5b911231209 /actionview/lib/action_view/helpers/form_tag_helper.rb
parentf28340a5ef3dafd3f96e7032b6b21352ebd11f57 (diff)
downloadrails-b2278aa1a0c02f8793587f625900504b447b4517.tar.gz
rails-b2278aa1a0c02f8793587f625900504b447b4517.tar.bz2
rails-b2278aa1a0c02f8793587f625900504b447b4517.zip
Use new hash syntax
Diffstat (limited to 'actionview/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/form_tag_helper.rb5
1 files changed, 3 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 5aeb138f7a..c0218fd55d 100644
--- a/actionview/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionview/lib/action_view/helpers/form_tag_helper.rb
@@ -135,15 +135,16 @@ module ActionView
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)
+ option_tags = content_tag(:option, include_blank, value: '').safe_concat(option_tags)
end
if prompt = options.delete(:prompt)
- option_tags = content_tag(:option, prompt, :value => '').safe_concat(option_tags)
+ option_tags = content_tag(:option, prompt, value: '').safe_concat(option_tags)
end
content_tag :select, option_tags, { "name" => html_name, "id" => sanitize_to_id(name) }.update(options.stringify_keys)