mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Remove condition on purging file
This commit is contained in:
parent
73edb35bb1
commit
f25f7db70f
1 changed files with 1 additions and 7 deletions
|
|
@ -20,12 +20,6 @@ class Export < ApplicationRecord
|
|||
private
|
||||
|
||||
def remove_attached_file
|
||||
storage_config = Rails.application.config.active_storage
|
||||
|
||||
if storage_config.service == :local
|
||||
file.purge_later
|
||||
else
|
||||
file.purge
|
||||
end
|
||||
file.purge_later
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue