From a30d8f56d82183f19253396cb2a4c9ae016b9e2a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 11 Feb 2026 19:43:52 -0500 Subject: [PATCH] added nil check for customer (if a customer is deleted after a merge) --- app/views/vehicles/_details.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/vehicles/_details.html.erb b/app/views/vehicles/_details.html.erb index d5aaa0a..1df3fb5 100644 --- a/app/views/vehicles/_details.html.erb +++ b/app/views/vehicles/_details.html.erb @@ -8,7 +8,7 @@ <%= t(:field_customer)%> - <%= link_to vehicle.customer.name, customer_path(vehicle.customer) %> + <%= link_to(vehicle.customer.name, customer_path(vehicle.customer)) if vehicle.customer %>