We can remove ad-hoc handling now that we rely on page refreshes in the card perma

This commit is contained in:
Jorge Manrubia
2025-12-05 10:08:04 +01:00
parent c89db89f2a
commit 59ff50c1cb
2 changed files with 0 additions and 9 deletions
-5
View File
@@ -19,7 +19,6 @@ module Card::Eventable
def touch_last_active_at
# Not using touch so that we can detect attribute change on callbacks
update!(last_active_at: Time.current)
broadcast_activity
end
private
@@ -36,8 +35,4 @@ module Card::Eventable
def create_system_comment_for(event)
SystemCommenter.new(self, event).comment
end
def broadcast_activity
broadcast_render_later_to self, :activity, partial: "card/display/refresh_activity", locals: { card: self }
end
end
@@ -1,4 +0,0 @@
<%= turbo_stream.remove dom_id(card, "bubble") %>
<%= turbo_stream.replace dom_id(card, :card_closure_toggle) do %>
<%= render "cards/container/closure", card: card %>
<% end %>