mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update vehicles_controller.rb
This commit is contained in:
@@ -54,7 +54,9 @@ class VehiclesController < ApplicationController
|
|||||||
def edit
|
def edit
|
||||||
begin
|
begin
|
||||||
@vehicle = Vehicle.find_by_id(params[:id])
|
@vehicle = Vehicle.find_by_id(params[:id])
|
||||||
@customers = Customer.without_callback(:initialize, :after, :pull).all.order(:name)
|
Customer.without_callback(:initialize, :after, :pull) do
|
||||||
|
@customers = .all.order(:name)
|
||||||
|
end
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
render_404
|
render_404
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user