mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Fix outdated pdf rendering
This commit is contained in:
parent
c613de1a11
commit
1c767d0364
1 changed files with 2 additions and 4 deletions
|
@ -14,9 +14,7 @@ class Invoice
|
||||||
private
|
private
|
||||||
|
|
||||||
def invoice_html
|
def invoice_html
|
||||||
view = ActionView::Base.new(ActionController::Base.view_paths, invoice: invoice)
|
ApplicationController.render(template: 'invoice/pdf', assigns: { invoice: invoice } )
|
||||||
view.class_eval { include ApplicationHelper }
|
|
||||||
view.render(file: 'invoice/pdf', layout: false)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue