X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6c78b28f9f54664babc57a4b4372c502065ed5d1..c3872e7a1c817cd39b702f694f70d34f28f7f472:/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