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
f71be3f1a5
commit
3589ea8685
1 file changed
-8
@@ -38,14 +38,6 @@ class VehiclesController < ApplicationController
|
||||
@vehicle = Vehicle.find_by_id(params[:id])
|
||||
if @vehicle
|
||||
@customer = @vehicle.qbo_customer.name if @vehicle.qbo_customer
|
||||
|
||||
if @vehicle.vin?
|
||||
@details = @vehicle.details
|
||||
@style = @details['years'][0]['styles'][0]['name']
|
||||
@drive = @details['drivenWheels']
|
||||
@doors = @details['numOfDoors']
|
||||
end
|
||||
|
||||
else
|
||||
flash[:error] = "Vehicle Not Found"
|
||||
render :index
|
||||
|
||||
Reference in new issue
Block a user