From 843c355a647b2669ab6f248121ddd01b2e7b0cc1 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 12 May 2016 10:11:34 -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 03bdf81..a4bb5d7 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -55,7 +55,7 @@ class VehiclesController < ApplicationController begin @vehicle = Vehicle.find_by_id(params[:id]) Customer.without_callback(:initialize, :after, :pull) do - @customers = .all.order(:name) + @customers = Customer.all.order(:name) end rescue ActiveRecord::RecordNotFound render_404