Fine to let destroying something destroyed be a no-op
Would be an edge-casey race condition, but its possible
This commit is contained in:
@@ -17,7 +17,7 @@ class Cards::Comments::ReactionsController < ApplicationController
|
||||
|
||||
def destroy
|
||||
@reaction = @comment.reactions.find(params[:id])
|
||||
@reaction.destroy!
|
||||
@reaction.destroy
|
||||
|
||||
broadcast_remove
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user