extract_values_from_collection(collection, value_method, selected) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 820
        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
Register or log in to add new notes.