mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Merge pull request #3355 from okriuchykhin/ok_SCI_5768
Fix files download URLs in PDF report [SCI-5768]
This commit is contained in:
commit
1a16fcd6c6
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ module Reports
|
|||
ActionController::Renderer::RACK_KEY_TRANSLATION['warden'] ||= 'warden'
|
||||
proxy = Warden::Proxy.new({}, Warden::Manager.new({}))
|
||||
proxy.set_user(user, scope: :user, store: false)
|
||||
ApplicationController.renderer.defaults[:http_host] = Rails.application.routes.default_url_options[:host]
|
||||
renderer = ApplicationController.renderer.new(warden: proxy)
|
||||
|
||||
file << renderer.render(
|
||||
|
|
Loading…
Reference in a new issue