mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
6d98b0c235
* Fix reports issues after rails upgrade [SCI-8830] * Fix report image assets [SCI-8830]
12 lines
333 B
Ruby
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
|