From a66adfc6d167ad934efe17b53eb0714a7e0b53b6 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 29 Apr 2016 09:46:23 -0400 Subject: [PATCH] Update vehicles_controller.rb --- app/controllers/vehicles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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