From 4374f9436c065a58336bf85b84041501ece6f398 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 4 Apr 2017 09:31:02 -0400 Subject: [PATCH] Removed .service from get_base call --- app/controllers/estimate_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/estimate_controller.rb b/app/controllers/estimate_controller.rb index 52aa3bc..dbdf67a 100644 --- a/app/controllers/estimate_controller.rb +++ b/app/controllers/estimate_controller.rb @@ -18,7 +18,7 @@ class EstimateController < ApplicationController # Downloads and forwards the estimate pdf # def show - base = QboEstimate.get_base.service + base = QboEstimate.get_base estimate = base.fetch_by_id(params[:id]) @pdf = base.pdf(estimate) send_data @pdf, filename: "estimate #{estimate.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"