Update vehicles_controller.rb

This commit is contained in:
2016-04-27 10:39:02 -04:00
parent 828a59f989
commit ee40dbf5a4

View File

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