From a92ef07d7cbba63a44c4fef2f44b8976da5e4804 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 22 Nov 2014 07:11:41 -0700 Subject: remove unused code. --- app/controllers/api/v1/cakes_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/controllers/api/v1') diff --git a/app/controllers/api/v1/cakes_controller.rb b/app/controllers/api/v1/cakes_controller.rb index 862ef071..1f03e8ee 100644 --- a/app/controllers/api/v1/cakes_controller.rb +++ b/app/controllers/api/v1/cakes_controller.rb @@ -26,8 +26,7 @@ module Api def update @cake = current_user.creations.find(params[:id]) current_user.tag(@cake, with: params[:cake][:tags], on: :tags) - current_user.tag(@cake, with: params[:cake][:tools], on: :tools) - if @cake.update(cake_params.reject { |key, value| key == "tags" || key == "tools" }) + if @cake.update(cake_params.reject { |key, value| key == "tags" }) respond_with @cake else respond_with @cake -- cgit v1.2.3