do not use image variants deletion

This commit is contained in:
Pete Matsyburka
2024-02-17 13:36:55 +02:00
parent b40a047190
commit 9d9a955149
+6
View File
@@ -10,6 +10,12 @@ ActiveSupport.on_load(:active_storage_attachment) do
end end
end end
ActiveSupport.on_load(:active_storage_blob) do
def delete
service.delete(key)
end
end
ActiveStorage::LogSubscriber.detach_from(:active_storage) if Rails.env.production? ActiveStorage::LogSubscriber.detach_from(:active_storage) if Rails.env.production?
Rails.configuration.to_prepare do Rails.configuration.to_prepare do