fixes Ticket #259 html_options minor fix

This commit is contained in:
Matthias Tarasiewicz 2007-01-17 21:28:20 +00:00
parent 85a568fe79
commit 95d794cfcb

View file

@ -19,7 +19,7 @@ module ApplicationHelper
container = container.to_a if Hash === container
html_options = container.inject([]) do |options, element|
if element.respond_to?(:first) && element.respond_to?(:last)
if element.is_a? Array
if element.last != selected
options << "<option value=\"#{element.last}\">#{element.first}</option>"
else