scinote-web/lib/active_storage/service/custom_disk_service.rb
Soufiane 6d98b0c235
Reports - Issues after rails upgrade [SCI-8830] (#5758)
* Fix reports issues after rails upgrade [SCI-8830]

* Fix report image assets [SCI-8830]
2023-07-12 15:42:34 +02:00

12 lines
333 B
Ruby

# frozen_string_literal: true
require 'active_storage/service/disk_service'
module ActiveStorage
class Service::CustomDiskService < Service::DiskService
def url_options
ActiveStorage::Current.url_options ||= { host: Rails.application.secrets.mail_server_url }
ActiveStorage::Current.url_options
end
end
end