Sha256: 6044f19eafe469d4e3065b79d3c698e35ca460b4c6162319000cce3e12185633
Contents?: true
Size: 429 Bytes
Versions: 23
Compression:
Stored size: 429 Bytes
Contents
class CsvPrinter < ActionPrinter #IKKE FÆRDIG def do_render(print_job) path = print_job.view_template.path locals = { resource_class: print_job.entity.constantize, collection: print_job.entity.constantize.find_by_sql( print_job.resources_sql) } of = html_file render_to_string( path, locals: locals ) %x[ java -jar lib/java_pdf/barcodeprinter.jar #{of.path} #{pdf_file_path} ] rescue false end end
Version data entries
23 entries across 23 versions & 1 rubygems
Version | Path |
---|---|
oxen_printer-0.2.4 | lib/oxen_printer/csv_printer.rb |
oxen_printer-0.2.1 | lib/oxen_printer/csv_printer.rb |
oxen_printer-0.0.3 | lib/oxen_printer/csv_printer.rb |