diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-26 12:12:40 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-26 12:12:40 -0700 |
commit | a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b (patch) | |
tree | ce3f1d5db546645ee060f86e4e7b4f4421ac4d3e /actionpack/lib/action_view/helpers | |
parent | d672a14ee766e86c606db566dd073a3d2332cc60 (diff) | |
download | rails-a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b.tar.gz rails-a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b.tar.bz2 rails-a7ca5595a21fa3bfd0ef51e6a56fbb80a13e040b.zip |
Revert "I18n: use I18n for select helpers' prompt text"
Broke CI.
[#2252 state:open]
This reverts commit adedf72821a5623227ce91e6b298838e692477e4.
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb index 3db5202e7d..4620a52272 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -571,8 +571,7 @@ module ActionView option_tags = "<option value=\"\">#{options[:include_blank] if options[:include_blank].kind_of?(String)}</option>\n" + option_tags end if value.blank? && options[:prompt] - prompt = options[:prompt].kind_of?(String) ? options[:prompt] : I18n.translate('support.select.prompt', :default => 'Please select') - "<option value=\"\">#{prompt}</option>\n" + option_tags + ("<option value=\"\">#{options[:prompt].kind_of?(String) ? options[:prompt] : 'Please select'}</option>\n") + option_tags else option_tags end |