Favor consistent style that avoids explicit dom_id calls

This commit is contained in:
Jorge Manrubia
2025-11-17 11:21:50 +01:00
parent 8c2b42d8dc
commit c247a430fb
@@ -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 %>