Merge pull request #2219 from okriuchykhin/ok_SCI_4071

Improve handling of file links for local storage [SCI-4071]
This commit is contained in:
Alex Kriuchykhin 2019-11-20 15:08:21 +01:00 committed by GitHub
commit aaef56e82b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View file

@ -4,9 +4,5 @@
module ActiveStorage
class CustomBaseController < ApplicationController
include ActiveStorage::SetCurrent
before_action do
ActiveStorage::Current.host = request.base_url
end
end
end

View file

@ -2,6 +2,7 @@
class MarvinJsAssetsController < ApplicationController
include MarvinJsActions
include ActiveStorage::SetCurrent
before_action :load_vars, except: :create
before_action :load_create_vars, only: :create

View file

@ -2,6 +2,7 @@
class TinyMceAssetsController < ApplicationController
include MarvinJsActions
include ActiveStorage::SetCurrent
before_action :load_vars, only: %i(marvinjs_show marvinjs_update download)