Sha256: a3d3aecf336b1b5db67cb2cd5c1cb2e16114c98ec0ef8d6395c4f15bf526b38a
Contents?: true
Size: 258 Bytes
Versions: 2
Compression:
Stored size: 258 Bytes
Contents
module PrawnCocktailRails module Controller private def send_pdf(document) send_data( document.render, type: "application/pdf", disposition: "attachment", filename: document.filename ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prawn_cocktail_rails-0.2.0 | lib/prawn_cocktail_rails/controller.rb |
prawn_cocktail_rails-0.1.0 | lib/prawn_cocktail_rails/controller.rb |