instance method
broadcast_refresh_to
Ruby on Rails 2.0.23
Since v2.0.23 Last seen in v2.0.23Signature
broadcast_refresh_to(*streamables, **attributes)
Broadcast a “page refresh” to the stream name identified by the passed streamables. Example:
# Sends <turbo-stream action="refresh"></turbo-stream> to the stream named "identity:2:clearances" clearance.broadcast_refresh_to examiner.identity, :clearances
Parameters
-
streamablesrest -
attributeskeyrest
Source
# File app/models/concerns/turbo/broadcastable.rb, line 381
def broadcast_refresh_to(*streamables, **attributes)
Turbo::StreamsChannel.broadcast_refresh_to(*streamables, **attributes) unless suppressed_turbo_broadcasts?
end
Defined in app/models/concerns/turbo/broadcastable.rb line 381
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Turbo::Broadcastable