Method: Turbo::Streams::TagBuilder#action_all

Defined in:
app/models/turbo/streams/tag_builder.rb

#action_all(name, targets, content = nil, method: nil, allow_inferred_rendering: true, **rendering, &block) ⇒ Object

Send an action of the type name to targets. Options described in the concrete methods.



255
256
257
258
259
# File 'app/models/turbo/streams/tag_builder.rb', line 255

def action_all(name, targets, content = nil, method: nil, allow_inferred_rendering: true, **rendering, &block)
  template = render_template(targets, content, allow_inferred_rendering: allow_inferred_rendering, **rendering, &block)

  turbo_stream_action_tag name, targets: targets, template: template, method: method
end