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