Sha256: 4f675577080d9b1d715a6bfd16d1d1bcac85d8266b5f2570e9d6e9fc82eca19a

Contents?: true

Size: 253 Bytes

Versions: 2

Compression:

Stored size: 253 Bytes

Contents

module PrawnCocktail
  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-0.4.0 lib/prawn_cocktail/controller.rb
prawn_cocktail-0.3.1 lib/prawn_cocktail/controller.rb