instance method broadcast_action_later_to

Ruby on Rails 2.0.23

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_later_to(*streamables, action:, target: nil, targets: nil, attributes: {}, **rendering)

No documentation comment.

Parameters

streamables rest
action keyreq
target key = nil
targets key = nil
attributes key = {}
rendering keyrest
Source
# File app/channels/turbo/streams/broadcasts.rb, line 78
  def broadcast_action_later_to(*streamables, action:, target: nil, targets: nil, attributes: {}, **rendering)
    streamables.flatten!
    streamables.compact_blank!

    if streamables.present?
      target = convert_to_turbo_stream_dom_id(target)
      targets = convert_to_turbo_stream_dom_id(targets, include_selector: true)
      Turbo::Streams::ActionBroadcastJob.perform_later \
        stream_name_from(streamables), action: action, target: target, targets: targets, attributes: attributes, **rendering
    end
  end

Defined in app/channels/turbo/streams/broadcasts.rb line 78 · 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