mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
12 lines
293 B
Ruby
12 lines
293 B
Ruby
# frozen_string_literal: true
|
|
|
|
# The base controller for all ActiveStorage controllers.
|
|
module ActiveStorage
|
|
class CustomBaseController < ApplicationController
|
|
include ActiveStorage::SetCurrent
|
|
|
|
before_action do
|
|
ActiveStorage::Current.host = request.base_url
|
|
end
|
|
end
|
|
end
|