diff options
author | kennyj <kennyj@gmail.com> | 2013-06-28 02:50:58 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-06-28 03:11:00 +0900 |
commit | 94c72c45bb1106a67e2dcf504419c5b141c1fc66 (patch) | |
tree | 4676666372c0a3c9d19edf42b0f144efad1ff8c2 /actionview/lib/action_view/helpers | |
parent | 4f1a7dc9567af6aea6f6f53177d4a9e61b6dd3c5 (diff) | |
download | rails-94c72c45bb1106a67e2dcf504419c5b141c1fc66.tar.gz rails-94c72c45bb1106a67e2dcf504419c5b141c1fc66.tar.bz2 rails-94c72c45bb1106a67e2dcf504419c5b141c1fc66.zip |
Remove passing the prompt to grouped_options_for_select as an argument, because it was deprecated.
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r-- | actionview/lib/action_view/helpers/form_options_helper.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb index ab5aae9b13..4e9ef94ff3 100644 --- a/actionview/lib/action_view/helpers/form_options_helper.rb +++ b/actionview/lib/action_view/helpers/form_options_helper.rb @@ -510,15 +510,8 @@ module ActionView # <b>Note:</b> Only the <tt><optgroup></tt> and <tt><option></tt> tags are returned, so you still have to # wrap the output in an appropriate <tt><select></tt> tag. def grouped_options_for_select(grouped_options, selected_key = nil, options = {}) - if options.is_a?(Hash) - prompt = options[:prompt] - divider = options[:divider] - else - prompt = options - message = "Passing the prompt to grouped_options_for_select as an argument is deprecated. " \ - "Please use an options hash like `{ prompt: #{prompt.inspect} }`." - ActiveSupport::Deprecation.warn message - end + prompt = options[:prompt] + divider = options[:divider] body = "".html_safe |