X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a12864a31d5569c74ed32157d5fe928a1c2563b7..7a5eb1b19c698f39b7cfdaafa4b3deefe556b07e:/apps/workbench/app/controllers/projects_controller.rb diff --git a/apps/workbench/app/controllers/projects_controller.rb b/apps/workbench/app/controllers/projects_controller.rb index 273f9d0c80..2cd668a28d 100644 --- a/apps/workbench/app/controllers/projects_controller.rb +++ b/apps/workbench/app/controllers/projects_controller.rb @@ -149,10 +149,9 @@ class ProjectsController < ApplicationController link.destroy end - # If this object has the 'trash_at' attribute, then simply mark it - # as trash. - if item.attributes.include?("trash_at") - item.update_attributes trash_at: Time.now + if item.class == Collection + # Use delete API on collections + item.destroy @removed_uuids << item.uuid elsif item.owner_uuid == @object.uuid # Object is owned by this project. Remove it from the project by