From f3b63538af818c3129cda2df6a1ccb286804d39d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20B=C3=B3na?= Date: Mon, 25 Nov 2019 16:30:37 +0100 Subject: [PATCH] Fix actions order in the comment The order of performed actions changed in 07ecaa614b but the comment stayed the same. --- activestorage/app/models/active_storage/blob.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activestorage/app/models/active_storage/blob.rb b/activestorage/app/models/active_storage/blob.rb index d5bc8b90a8..73fd928464 100644 --- a/activestorage/app/models/active_storage/blob.rb +++ b/activestorage/app/models/active_storage/blob.rb @@ -250,7 +250,7 @@ class ActiveStorage::Blob < ActiveRecord::Base service.delete_prefixed("variants/#{key}/") if image? end - # Deletes the file on the service and then destroys the blob record. This is the recommended way to dispose of unwanted + # Destroys the blob record and then deletes the file on the service. This is the recommended way to dispose of unwanted # blobs. Note, though, that deleting the file off the service will initiate an HTTP connection to the service, which may # be slow or prevented, so you should not use this method inside a transaction or in callbacks. Use #purge_later instead. def purge