Browse files

Merge pull request #13 from murphyslaw/rails3-safe-buffer

Rails 3 compatibility: marks country options as "html_safe"
  • Loading branch information...
2 parents 3e3bd29 + c3dbc7a commit b8b27e7077be76b6dd61f1844781d2c5b837266c @karmi committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/localized_country_select.rb
View
2 lib/localized_country_select.rb
@@ -63,7 +63,7 @@ def localized_country_select_tag(name, selected_value = nil, priority_countries
# as +selected+ to have it marked as the selected option tag.
# Country codes listed as an array of symbols in +priority_countries+ argument will be listed first
def localized_country_options_for_select(selected = nil, priority_countries = nil)
- country_options = ""
+ country_options = "".html_safe
if priority_countries
country_options += options_for_select(LocalizedCountrySelect::priority_countries_array(priority_countries), selected)
country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"

0 comments on commit b8b27e7

Please sign in to comment.