No need to loop through a job when this is the sole point of the action
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user