Permalink
Browse files

added html_safe for options (rails 3.2.2)

  • Loading branch information...
1 parent 46d335b commit fa709bba35b7c006563443f1c49f301b1570bdd2 @jeanmartin jeanmartin committed Mar 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/localized_language_select.rb
@@ -76,7 +76,7 @@ def localized_language_select(object, method, priority_languages = nil, options
# TODO : Implement pseudo-named args with a hash, not the "somebody said PHP?" multiple args sillines
def localized_language_select_tag(name, selected_value = nil, priority_languages = nil, html_options = {})
content_tag :select,
- localized_language_options_for_select(selected_value, priority_languages),
+ localized_language_options_for_select(selected_value, priority_languages).html_safe,
{ "name" => name, "id" => name }.update(html_options.stringify_keys)
end
alias_method :language_select_tag, :localized_language_select_tag
@@ -105,7 +105,7 @@ def to_localized_language_select_tag(priority_languages, options, html_options)
add_options(
localized_language_options_for_select(value, priority_languages, options),
options, value
- ), html_options
+ ).html_safe, html_options
)
end
end

0 comments on commit fa709bb

Please sign in to comment.