Add logging to get_estimate method for better debugging

This commit is contained in:
2026-02-28 08:53:38 -05:00
parent ca02ead9f9
commit 7a50df24d9

View File

@@ -15,6 +15,7 @@ class EstimateController < ApplicationController
skip_before_action :verify_authenticity_token, :check_if_login_required, unless: proc {|c| session[:token].nil? } skip_before_action :verify_authenticity_token, :check_if_login_required, unless: proc {|c| session[:token].nil? }
def get_estimate def get_estimate
log "Searching for estimate with params: #{params.inspect}"
e = Estimate.find_by_doc_number(params[:search]) if params[:search] e = Estimate.find_by_doc_number(params[:search]) if params[:search]
e = Estimate.find_by_id(params[:id]) if params[:id] e = Estimate.find_by_id(params[:id]) if params[:id]