instance method
convert_to_turbo_stream_dom_id
Ruby on Rails 1.5.0
Since v1.3.3 Last seen in v2.0.23 PrivateSignature
convert_to_turbo_stream_dom_id(target, include_selector: false)
No documentation comment.
Parameters
-
targetreq -
include_selectorkey = false
Source
# File app/helpers/turbo/streams/action_helper.rb, line 39
def convert_to_turbo_stream_dom_id(target, include_selector: false)
if Array(target).any? { |value| value.respond_to?(:to_key) }
"#{"#" if include_selector}#{ActionView::RecordIdentifier.dom_id(*target)}"
else
target
end
end
Defined in app/helpers/turbo/streams/action_helper.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::ActionHelper