diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-10-26 10:30:14 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-10-26 10:30:52 -0700 |
commit | 902764379838d0d2b98e262c4039b7069cada3f8 (patch) | |
tree | 67546ef8d4f5817f31451ddfcfeb085d48be26ef /actionpack/lib | |
parent | 0d0176c4ffe5c58fd1002efbd8f7bd45a8872e33 (diff) | |
download | rails-902764379838d0d2b98e262c4039b7069cada3f8.tar.gz rails-902764379838d0d2b98e262c4039b7069cada3f8.tar.bz2 rails-902764379838d0d2b98e262c4039b7069cada3f8.zip |
scumbag 1.8: strings are enumerable :'(
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 2 |
1 files changed, 1 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 1a6c3b9740..f895cad058 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -584,7 +584,7 @@ module ActionView # [nil, []] # { nil => [] } # - if !choices.empty? && choices.first.last.respond_to?(:each) + if !choices.empty? && Array === choices.first.last option_tags = grouped_options_for_select(choices, :selected => selected_value, :disabled => options[:disabled]) else option_tags = options_for_select(choices, :selected => selected_value, :disabled => options[:disabled]) |