Update vehicles_controller.rb

This commit is contained in:
2016-04-29 09:46:23 -04:00
parent 53a35e0fc3
commit a66adfc6d1

View File

@@ -25,7 +25,7 @@ class VehiclesController < ApplicationController
def new
@vehicle = Vehicle.new
Customer.skip_callback(:initialize, :after, :get_details)
@customers = Customer.order(:name)
@customers = Customer.all.order(:name)
Customer.set_callback(:initialize, :after, :get_details)
end