X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6bb345e5958f905e0527facdc5b08d973a535f3a..3b40453701265dc66f8efb5865d29cf508f3ca43:/services/api/lib/trashable.rb diff --git a/services/api/lib/trashable.rb b/services/api/lib/trashable.rb index c99b08513b..50611c305d 100644 --- a/services/api/lib/trashable.rb +++ b/services/api/lib/trashable.rb @@ -93,19 +93,19 @@ end module TrashableController def destroy if !@object.is_trashed - @object.update_attributes!(trash_at: db_current_time) + @object.update!(trash_at: db_current_time) end earliest_delete = (@object.trash_at + Rails.configuration.Collections.BlobSigningTTL) if @object.delete_at > earliest_delete - @object.update_attributes!(delete_at: earliest_delete) + @object.update!(delete_at: earliest_delete) end show end def trash if !@object.is_trashed - @object.update_attributes!(trash_at: db_current_time) + @object.update!(trash_at: db_current_time) end show end