method

extract_values_from_collection

extract_values_from_collection(collection, value_method, selected)
private

No documentation available.

# File actionview/lib/action_view/helpers/form_options_helper.rb, line 823
        def extract_values_from_collection(collection, value_method, selected)
          if selected.is_a?(Proc)
            collection.filter_map do |element|
              element.public_send(value_method) if selected.call(element)
            end
          else
            selected
          end
        end