diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 3e6d392..2064e1a 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -24,7 +24,7 @@ class VehiclesController < ApplicationController # return an HTML form for creating a new vehicle def new @vehicle = Vehicle.new - @customers = Customer.all.order(:name) + @customers = Customer.without_callback(:initialize, :after, :pull).all.order(:name) end # create a new vehicle @@ -52,7 +52,7 @@ class VehiclesController < ApplicationController def edit begin @vehicle = Vehicle.find_by_id(params[:id]) - @customers = Customer.all.order(:name) + @customers = Customer.without_callback(:initialize, :after, :pull).all.order(:name) rescue ActiveRecord::RecordNotFound render_404 end