forked from OpenNeo/impress
fix bug on closet_hangers#destroy in html format
This commit is contained in:
parent
64054d412e
commit
e3b0a5e2d7
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ class ClosetHangersController < ApplicationController
|
|||
def destroy
|
||||
@closet_hanger = current_user.closet_hangers.find params[:id]
|
||||
@closet_hanger.destroy
|
||||
@item = @closet_hanger.item
|
||||
respond_to do |format|
|
||||
format.html { redirect_after_destroy! }
|
||||
format.json { render :json => true }
|
||||
|
|
Loading…
Reference in a new issue