Update vehicles_controller.rb

This commit is contained in:
2016-04-29 09:43:20 -04:00
parent 8c6d5acea1
commit 325e8cd71c

View File

@@ -24,6 +24,9 @@ class VehiclesController < ApplicationController
# return an HTML form for creating a new vehicle
def new
@vehicle = Vehicle.new
Customer.skip_callback(:initialize, :after, :get_details)
@customers = Customer.order(:name)
Customer.set_callback(:initialize, :after, :get_details)
end
# create a new vehicle