mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 15:05:26 +08:00
11 lines
248 B
Ruby
11 lines
248 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
# The base controller for all ActiveStorage controllers.
|
||
|
module ActiveStorage
|
||
|
class BaseController < ApplicationController
|
||
|
before_action do
|
||
|
ActiveStorage::Current.host = request.base_url
|
||
|
end
|
||
|
end
|
||
|
end
|