scinote-web/app/controllers/active_storage/custom_base_controller.rb
2019-10-03 11:00:59 +02:00

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