scinote-web/app/controllers/active_storage/base_controller.rb

11 lines
248 B
Ruby
Raw Normal View History

# 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