Update vehicles_controller.rb

This commit is contained in:
2016-05-12 11:43:52 -04:00
parent 939cd63d41
commit 3f352f1f19

View File

@@ -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