mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -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
|
private
|
||||||
|
|
||||||
def remove_attached_file
|
def remove_attached_file
|
||||||
storage_config = Rails.application.config.active_storage
|
file.purge_later
|
||||||
|
|
||||||
if storage_config.service == :local
|
|
||||||
file.purge_later
|
|
||||||
else
|
|
||||||
file.purge
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue