From 3f352f1f19f15a5965fd25153e39c660df23c3af Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 11:43:52 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index a4bb5d7..6c280f7 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -54,6 +54,7 @@ class VehiclesController < ApplicationController def edit begin @vehicle = Vehicle.find_by_id(params[:id]) + @customer = @vehicle.customer.id Customer.without_callback(:initialize, :after, :pull) do @customers = Customer.all.order(:name) end