-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I noticed that there's a before action in Admin::ProjectsController that sets ActiveStorage::Current.url_options:
editor-api/app/controllers/admin/projects_controller.rb
Lines 19 to 23 in f348dfc
| def set_host_for_local_storage | |
| return unless Rails.application.config.active_storage.service == :local | |
| ActiveStorage::Current.url_options = { host: request.base_url } | |
| end |
I think we might be able to include ActiveStorage::SetCurrent into the controller instead:
Metadata
Metadata
Assignees
Labels
No labels