diff options
Diffstat (limited to 'app/controllers/api/v1')
| -rw-r--r-- | app/controllers/api/v1/cakes_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
