mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update vehicles_controller.rb
This commit is contained in:
1 parent
767f42c326
commit
cf30ff3fe1
1 file changed
+1
@@ -44,6 +44,7 @@ class VehiclesController < ApplicationController
|
||||
@vehicle = Vehicle.find_by_id(params[:id])
|
||||
if @vehicle
|
||||
@customer = @vehicle.customer.name if @vehicle.customer
|
||||
issues = @vehicle.issues
|
||||
else
|
||||
flash[:error] = "Vehicle Not Found"
|
||||
redirect_to :index
|
||||
|
||||
Reference in new issue
Block a user