From c247a430fbf3b723936bc0fcd1db2ac074ca7c09 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 17 Nov 2025 11:21:50 +0100 Subject: [PATCH] Favor consistent style that avoids explicit dom_id calls --- app/views/cards/comments/create.turbo_stream.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/cards/comments/create.turbo_stream.erb b/app/views/cards/comments/create.turbo_stream.erb index a120ac82c..8dd0db841 100644 --- a/app/views/cards/comments/create.turbo_stream.erb +++ b/app/views/cards/comments/create.turbo_stream.erb @@ -1,7 +1,7 @@ -<%= turbo_stream.before dom_id(@card, :new_comment) do %> +<%= turbo_stream.before [ @card, :new_comment ] do %> <%= render "cards/comments/comment", comment: @comment %> <% end %> -<%= turbo_stream.update dom_id(@card, :new_comment) do %> +<%= turbo_stream.update [ @card, :new_comment ] do %> <%= render "cards/comments/new", card: @card %> <% end %>