aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2013-06-28 02:50:58 +0900
committerkennyj <kennyj@gmail.com>2013-06-28 03:11:00 +0900
commit94c72c45bb1106a67e2dcf504419c5b141c1fc66 (patch)
tree4676666372c0a3c9d19edf42b0f144efad1ff8c2 /actionview/lib
parent4f1a7dc9567af6aea6f6f53177d4a9e61b6dd3c5 (diff)
downloadrails-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')
-rw-r--r--actionview/lib/action_view/helpers/form_options_helper.rb11
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