mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Refactor extract_selected_and_disabled
This commit is contained in:
parent
2ed17977ac
commit
1de3f63e15
1 changed files with 2 additions and 1 deletions
|
@ -558,7 +558,8 @@ module ActionView
|
|||
else
|
||||
selected = Array.wrap(selected)
|
||||
options = selected.extract_options!.symbolize_keys
|
||||
[ options.include?(:selected) ? options[:selected] : selected, options[:disabled] ]
|
||||
selected_items = options.include?(:selected) ? options[:selected] : selected
|
||||
[ selected_items, options[:disabled] ]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue