diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-22 07:11:41 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-22 07:11:41 -0700 |
| commit | a92ef07d7cbba63a44c4fef2f44b8976da5e4804 (patch) | |
| tree | 5cfc6f210ead3f85571d482f3d2d46d921e0aa09 /app/controllers/api | |
| parent | 745ef8d0f7e28be6cbf647f5519573e5f6a131d7 (diff) | |
remove unused code.
Diffstat (limited to 'app/controllers/api')
| -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 |
