Method: WickedPdf::PdfHelper#render_to_string_with_wicked_pdf
- Defined in:
- lib/wicked_pdf/pdf_helper.rb
#render_to_string_with_wicked_pdf(options) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/wicked_pdf/pdf_helper.rb', line 40 def render_to_string_with_wicked_pdf() raise ArgumentError, 'missing keyword: pdf' unless .is_a?(Hash) && .key?(:pdf) [:basic_auth] = set_basic_auth() .delete :pdf make_pdf((WickedPdf.config || {}).merge()) end |