From 851be126aba76cd450148a541e84d7d91697e4c1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 5 Apr 2025 15:55:11 +0200 Subject: [PATCH] Emphasize where this pin is showing up --- app/controllers/bubbles/pins_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/bubbles/pins_controller.rb b/app/controllers/bubbles/pins_controller.rb index 09ac6b9c1..d75d2b10d 100644 --- a/app/controllers/bubbles/pins_controller.rb +++ b/app/controllers/bubbles/pins_controller.rb @@ -7,23 +7,23 @@ class Bubbles::PinsController < ApplicationController def create pin = @bubble.pin_by Current.user - broadcast_new pin + broadcast_my_new pin redirect_to bubble_pin_path(@bubble) end def destroy pin = @bubble.unpin_by Current.user - broadcast_removed pin + broadcast_my_removed pin redirect_to bubble_pin_path(@bubble) end private - def broadcast_new(pin) + def broadcast_my_new(pin) pin.broadcast_prepend_later_to [ Current.user, :pins ], target: "pins", partial: "my/pins/pin" end - def broadcast_removed(pin) + def broadcast_my_removed(pin) pin.broadcast_remove_to [ Current.user, :pins ] end end