instance method broadcast_action_to

Ruby on Rails 1.4.0

Since v1.3.3 Last seen in v2.0.23

Available in: v1.3.3 v1.4.0 v1.5.0 v2.0.23

Signature

broadcast_action_to(*streamables, action:, target: nil, targets: nil, **rendering)

No documentation comment.

Parameters

streamables rest
action keyreq
target key = nil
targets key = nil
rendering keyrest
Source
# File app/channels/turbo/streams/broadcasts.rb, line 36
  def broadcast_action_to(*streamables, action:, target: nil, targets: nil, **rendering)
    broadcast_stream_to(*streamables, content: turbo_stream_action_tag(action, target: target, targets: targets, template:
      rendering.delete(:content) || rendering.delete(:html) || (rendering.any? ? render_format(:html, **rendering) : nil)
    ))
  end

Defined in app/channels/turbo/streams/broadcasts.rb line 36 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Turbo::Streams::Broadcasts

Type at least 2 characters to search.

↑↓ navigate · open · esc close