Skip to content

Commit

Permalink
Fixed a bug -- to_a is going away, lots of warning messages when spec…
Browse files Browse the repository at this point in the history
…s are run.

Signed-off-by: Ezra Zygmuntowicz <ez@engineyard.com>
  • Loading branch information
Lee Pope authored and Ezra Zygmuntowicz committed May 4, 2008
1 parent a3b8c76 commit 731cb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merb_helpers/lib/merb_helpers/form_helpers.rb
Expand Up @@ -451,7 +451,7 @@ def options_for_select(collection, attrs = {})
end
else
collection.each do |value,text|
options = selected.to_a.include?(value) ? {:selected => 'selected'} : {}
options = Array(selected).include?(value) ? {:selected => 'selected'} : {}
ret << tag( 'option', text, {:value => value}.merge(options) )
end
end
Expand Down

0 comments on commit 731cb7d

Please sign in to comment.