Method: Playbook::PbSelect::Select#selected
- Defined in:
- app/pb_kits/playbook/pb_select/select.rb
#selected ⇒ Object
70 71 72 73 74 75 76 77 |
# File 'app/pb_kits/playbook/pb_select/select.rb', line 70 def selected selections = .map { |option| option[:value] if option[:selected] == true }.compact if selections.empty? nil else selections end end |