Remove condition on purging file

This commit is contained in:
Eugene Burmakin 2025-04-03 18:43:30 +02:00
parent 73edb35bb1
commit f25f7db70f

View file

@ -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
end
end