From 0195d6138b7e441283cbbded31ff4e94bcf61901 Mon Sep 17 00:00:00 2001 From: Sergey Kojin Date: Tue, 27 Nov 2012 20:00:31 +0400 Subject: No sort Hash options in #grouped_options_for_select --- actionpack/lib/action_view/helpers/form_options_helper.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'actionpack/lib/action_view/helpers/form_options_helper.rb') diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb index 46ebe60ec2..9310a90f0f 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -482,15 +482,15 @@ module ActionView # grouped_options_for_select(grouped_options) # # Possible output: + # + # + # + # # # # # # - # - # - # - # # # Sample usage (divider): # grouped_options = [ @@ -530,8 +530,6 @@ module ActionView body.safe_concat content_tag(:option, prompt_text(prompt), :value => "") end - grouped_options = grouped_options.sort if grouped_options.is_a?(Hash) - grouped_options.each do |container| if divider label = divider -- cgit v1.2.3