aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-29 16:17:56 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-29 16:17:56 -0700
commit2eef53b163353898a0f96d559e3f80600eb6ba15 (patch)
tree058a570e4beecc821bc0bba18d6b2963eeaeb448
parent78ac9c2be738ff48c847a26ae8fc4464e881e184 (diff)
downloadrails-2eef53b163353898a0f96d559e3f80600eb6ba15.tar.gz
rails-2eef53b163353898a0f96d559e3f80600eb6ba15.tar.bz2
rails-2eef53b163353898a0f96d559e3f80600eb6ba15.zip
removing useless code
-rw-r--r--actionpack/lib/action_view/helpers/form_options_helper.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb
index 83434a9340..7d6aca0470 100644
--- a/actionpack/lib/action_view/helpers/form_options_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -297,7 +297,6 @@ module ActionView
def options_for_select(container, selected = nil)
return container if String === container
- container = container.to_a if Hash === container
selected, disabled = extract_selected_and_disabled(selected).map do | r |
Array.wrap(r).map(&:to_s)
end