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 794
        def extract_values_from_collection(collection, value_method, selected)
          if selected.is_a?(Proc)
            collection.map do |element|
              element.public_send(value_method) if selected.call(element)
            end.compact
          else
            selected
          end
        end
Register or log in to add new notes.