Skip to content

Commit

Permalink
Merge pull request karmi#13 from murphyslaw/rails3-safe-buffer
Browse files Browse the repository at this point in the history
Rails 3 compatibility: marks country options as "html_safe"
  • Loading branch information
karmi committed Jul 11, 2012
2 parents 3e3bd29 + c3dbc7a commit b8b27e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/localized_country_select.rb
Expand Up @@ -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"
Expand Down

0 comments on commit b8b27e7

Please sign in to comment.