Sha256: 5a8be21bcce35ad9da123fe80e93aee21ca5ebf80552ef2b54b52f28c2b3d7fd

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

Spree::Admin::OrdersController.class_eval do
  respond_to :pdf

  def show
    load_order
    respond_with(@order) do |format|
      format.pdf do
        template = params[:template] || "invoice"
        render :layout => false , :template => "spree/admin/orders/#{template}.pdf.prawn"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_print_invoice-2.1.4 app/controllers/spree/admin/orders_controller_decorator.rb
spree_print_invoice-2.1.3 app/controllers/spree/admin/orders_controller_decorator.rb