From 4d0dddec46c09b96b402805e30a96cf0e0f771eb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 17 Apr 2025 14:31:28 +0200 Subject: [PATCH] No need to loop through a job when this is the sole point of the action --- app/controllers/cards/pins_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cards/pins_controller.rb b/app/controllers/cards/pins_controller.rb index 68430ff06..235393178 100644 --- a/app/controllers/cards/pins_controller.rb +++ b/app/controllers/cards/pins_controller.rb @@ -16,7 +16,7 @@ class Cards::PinsController < ApplicationController private def broadcast_add_to_tray(pin) - pin.broadcast_prepend_later_to [ Current.user, :pins_tray ], target: "pins", partial: "my/pins/pin" + pin.broadcast_prepend_to [ Current.user, :pins_tray ], target: "pins", partial: "my/pins/pin" end def broadcast_remove_from_tray(pin)