mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-04 19:05:37 +08:00
Merge pull request #2219 from okriuchykhin/ok_SCI_4071
Improve handling of file links for local storage [SCI-4071]
This commit is contained in:
commit
aaef56e82b
3 changed files with 2 additions and 4 deletions
|
@ -4,9 +4,5 @@
|
|||
module ActiveStorage
|
||||
class CustomBaseController < ApplicationController
|
||||
include ActiveStorage::SetCurrent
|
||||
|
||||
before_action do
|
||||
ActiveStorage::Current.host = request.base_url
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
class TinyMceAssetsController < ApplicationController
|
||||
include MarvinJsActions
|
||||
include ActiveStorage::SetCurrent
|
||||
|
||||
before_action :load_vars, only: %i(marvinjs_show marvinjs_update download)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue