scinote-web/app/controllers/active_storage/base_controller.rb
2019-09-12 17:24:08 +02:00

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