summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/cakes_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/api/v1/cakes_controller.rb b/app/controllers/api/v1/cakes_controller.rb
index 62b9187b..c8241b6c 100644
--- a/app/controllers/api/v1/cakes_controller.rb
+++ b/app/controllers/api/v1/cakes_controller.rb
@@ -36,8 +36,9 @@ module Api
end
def destroy
- current_user.creations.find(params[:id]).destroy!
- render nothing: true
+ @cake = current_user.creations.find(params[:id])
+ @cake.destroy!
+ respond_with(@cake)
end
private