mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update vehicles_controller.rb
This commit is contained in:
1 parent
a68c7d5803
commit
fc93862528
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user