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