diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 16:17:56 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 16:17:56 -0700 |
commit | 2eef53b163353898a0f96d559e3f80600eb6ba15 (patch) | |
tree | 058a570e4beecc821bc0bba18d6b2963eeaeb448 /actionpack/lib/action_view/helpers | |
parent | 78ac9c2be738ff48c847a26ae8fc4464e881e184 (diff) | |
download | rails-2eef53b163353898a0f96d559e3f80600eb6ba15.tar.gz rails-2eef53b163353898a0f96d559e3f80600eb6ba15.tar.bz2 rails-2eef53b163353898a0f96d559e3f80600eb6ba15.zip |
removing useless code
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 1 |
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 |