diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index bdd573b..4dbf64c 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -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