You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
315 B
11 lines
315 B
module TurboStreamActionsHelper
|
|
def console_log(text)
|
|
turbo_stream_action_tag :console_log, text: text
|
|
end
|
|
|
|
def remote_dialog(dialog_id = 'remote-dialog', **rendering, &block)
|
|
action :remoteDialog, nil, **rendering, &block
|
|
end
|
|
end
|
|
|
|
Turbo::Streams::TagBuilder.prepend(TurboStreamActionsHelper)
|