透過 ActiveStorage::Blob#purge_later
提供非同步清除 ActiveStorage::Blob
記錄。
方法
- P
實例公開方法
perform(blob) 連結
程式碼:顯示 | 在 GitHub 上
# File activestorage/app/jobs/active_storage/purge_job.rb, line 10 def perform(blob) blob.purge end
透過 ActiveStorage::Blob#purge_later
提供非同步清除 ActiveStorage::Blob
記錄。
程式碼:顯示 | 在 GitHub 上
# File activestorage/app/jobs/active_storage/purge_job.rb, line 10 def perform(blob) blob.purge end