Skip to content

Commit 9e0a3a4

Browse files
committed
We can remove ad-hoc handling now that we rely on page refreshes in the card perma
1 parent e312e8f commit 9e0a3a4

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

app/models/card/eventable.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def event_was_created(event)
1919
def touch_last_active_at
2020
# Not using touch so that we can detect attribute change on callbacks
2121
update!(last_active_at: Time.current)
22-
broadcast_activity
2322
end
2423

2524
private
@@ -36,8 +35,4 @@ def track_title_change
3635
def create_system_comment_for(event)
3736
SystemCommenter.new(self, event).comment
3837
end
39-
40-
def broadcast_activity
41-
broadcast_render_later_to self, :activity, partial: "card/display/refresh_activity", locals: { card: self }
42-
end
4338
end

app/views/card/display/_refresh_activity.turbo_stream.erb

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/views/cards/display/preview/_bubble.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class: "bubble",
55
data: {
66
controller: "bubble",
7-
action: "turbo:morph-element->bubble#update",
7+
action: "turbo:morph->bubble#update",
88
bubble_entropy_value: entropy_bubble_options_for(card).to_json,
99
bubble_stalled_value: stalled_bubble_options_for(card)&.to_json
1010
} do %>

0 commit comments

Comments
 (0)