instance method
option_html_attributes
Ruby on Rails 7.0.10
Since v3.0.20 PrivateSignature
option_html_attributes(element)
No documentation comment.
Parameters
-
elementreq
Source
# File actionview/lib/action_view/helpers/form_options_helper.rb, line 786
def option_html_attributes(element)
if Array === element
element.select { |e| Hash === e }.reduce({}, :merge!)
else
{}
end
end
Defined in actionview/lib/action_view/helpers/form_options_helper.rb line 786
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::FormOptionsHelper