Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reference more detailed documentation on the country_select issue rat…

…her than just recommending the country_select plugin.
  • Loading branch information...
commit 03a6f74bdd8d0164525fa9bf89087be1160d6d6f 1 parent 78feaf6
@NZKoz NZKoz authored
View
2  actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -400,7 +400,7 @@ def to_collection_select_tag(collection, value_method, text_method, options, htm
end
def to_country_select_tag(priority_countries, options, html_options)
- ActiveSupport::Deprecation.warn("country_select is deprecated, please install the country_select plugin at http://github.com/rails/country_select/", caller)
+ ActiveSupport::Deprecation.warn("country_select will be removed from 2.2.0. http://www.rubyonrails.org/deprecation/list-of-countries has more information.", caller)
html_options = html_options.stringify_keys
add_default_name_and_id(html_options)
value = value(object)
View
6 actionpack/test/template/form_options_helper_test.rb
@@ -656,7 +656,7 @@ def test_country_select
<option value="Zambia">Zambia</option>
<option value="Zimbabwe">Zimbabwe</option></select>
COUNTRIES
- assert_deprecated 'plugin' do
+ assert_deprecated 'list-of-countries' do
assert_dom_equal(expected_select[0..-2], country_select("post", "origin"))
end
end
@@ -913,7 +913,7 @@ def test_country_select_with_priority_countries
<option value="Zambia">Zambia</option>
<option value="Zimbabwe">Zimbabwe</option></select>
COUNTRIES
- assert_deprecated 'plugin' do
+ assert_deprecated 'list-of-countries' do
assert_dom_equal(expected_select[0..-2], country_select("post", "origin", ["New Zealand", "Nicaragua"]))
end
end
@@ -1170,7 +1170,7 @@ def test_country_select_with_selected_priority_country
<option value="Zambia">Zambia</option>
<option value="Zimbabwe">Zimbabwe</option></select>
COUNTRIES
- assert_deprecated 'plugin' do
+ assert_deprecated 'list-of-countries' do
assert_dom_equal(expected_select[0..-2], country_select("post", "origin", ["New Zealand", "Nicaragua"]))
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.