mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Updated pdf generator for domain
This commit is contained in:
parent
b9f6492a9f
commit
95281b7007
1 changed files with 1 additions and 1 deletions
|
@ -768,7 +768,7 @@ class Domain < ApplicationRecord
|
||||||
|
|
||||||
def as_pdf
|
def as_pdf
|
||||||
domain_html = ApplicationController.render(template: 'domain/pdf', assigns: { domain: self })
|
domain_html = ApplicationController.render(template: 'domain/pdf', assigns: { domain: self })
|
||||||
generator = PDFKit.new(domain_html)
|
generator = PDFKit.new(domain_html, { enable_local_file_access: true })
|
||||||
generator.to_pdf
|
generator.to_pdf
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue