fixes Ticket #259 html_options minor fix
This commit is contained in:
parent
85a568fe79
commit
95d794cfcb
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module ApplicationHelper
|
||||||
container = container.to_a if Hash === container
|
container = container.to_a if Hash === container
|
||||||
|
|
||||||
html_options = container.inject([]) do |options, element|
|
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
|
if element.last != selected
|
||||||
options << "<option value=\"#{element.last}\">#{element.first}</option>"
|
options << "<option value=\"#{element.last}\">#{element.first}</option>"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue