method
option_value_selected?
option_value_selected?(value, selected)
private
Hide source
# File actionpack/lib/action_view/helpers/form_options_helper.rb, line 334 def option_value_selected?(value, selected) if selected.respond_to?(:include?) && !selected.is_a?(String) selected.include? value else value == selected end end