Update vehicles_controller.rb

This commit is contained in:
2016-04-27 13:51:39 -04:00
parent 0c5d2195d2
commit 933a0bb12d

View File

@@ -40,10 +40,10 @@ class VehiclesController < ApplicationController
@customer = @vehicle.qbo_customer.name if @vehicle.qbo_customer
if @vehicle.vin?
details = @vehicle.details
@style = details['years'][0]['styles'][0]['name']
@drive = @vehicle.vehicle_drivenWheels
@doors = details['numOfDoors']
@details = @vehicle.details
@style = @details['years'][0]['styles'][0]['name']
@drive = @details['vehicle_drivenWheels']
@doors = @details['numOfDoors']
end
else