No need to loop through a job when this is the sole point of the action

This commit is contained in:
David Heinemeier Hansson
2025-04-17 14:31:28 +02:00
parent 87ce4a623b
commit 4d0dddec46
+1 -1
View File
@@ -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)