Sha256: 50a51ad0852d24fb21b82b31511fb0996b5ee49e8a753ccd5faec67c16a5485d
Contents?: true
Size: 276 Bytes
Versions: 4
Compression:
Stored size: 276 Bytes
Contents
module App::AppError::Pdf extend Waxx::Pdf extend self def get(x, title, message) x.res['Content-Type'] = Waxx::Http.content_types[:pdf] pdf = new_doc pdf.text "<b>#{title}</b>" pdf.text "#{message}" render_file(x, pdf) return_file(x) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
waxx-0.2.0 | skel/app/app/error/pdf.rb |
waxx-0.1.4 | skel/app/app/error/pdf.rb |
waxx-0.1.3 | skel/app/app/error/pdf.rb |
waxx-0.1.2 | skel/app/app/error/pdf.rb |