mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
c34229683e
commit
db6884a772
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ class ActiveStorage::Blob < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deletes the file on the service and then destroys the blob record. This is the recommended way to dispose of unwanted
|
# Deletes the file on the service and then destroys the blob record. This is the recommended way to dispose of unwanted
|
||||||
# blobs. Note, though, that deleting the file off the service will initiate a HTTP connection to the service, which may
|
# 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.
|
# be slow or prevented, so you should not use this method inside a transaction or in callbacks. Use #purge_later instead.
|
||||||
def purge
|
def purge
|
||||||
destroy
|
destroy
|
||||||
|
|
Loading…
Reference in a new issue