instance method
convert_to_turbo_stream_dom_id
Ruby on Rails 1.3.3
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 27
def convert_to_turbo_stream_dom_id(target, include_selector: false)
if target.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 27
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Streams::ActionHelper