forked from e621ng/e621ng
[Blips] Fix an error when a blip is deleted (#820)
This commit is contained in:
parent
18a382cf64
commit
5c345528e4
@ -52,10 +52,10 @@ class BlipsController < ApplicationController
|
||||
def destroy
|
||||
@blip = Blip.find(params[:id])
|
||||
@blip.destroy
|
||||
flash[:notice] = 'Blip deleted'
|
||||
flash[:notice] = "Blip deleted"
|
||||
respond_with(@blip) do |format|
|
||||
format.html do
|
||||
redirect_back(fallback_location: blip_path(id: @blip.response_to))
|
||||
respond_with(@blip)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user