mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
Update vehicle.rb
This commit is contained in:
1 parent
723ad5bc53
commit
f8f3870405
1 file changed
+1
-1
@@ -26,7 +26,7 @@ class Vehicle < ActiveRecord::Base
|
||||
|
||||
def decode_vin
|
||||
if vin?
|
||||
e = VIN.full(vin)
|
||||
e = Edmunds::Api::VinDecoding::Full.find_by(vin: vin)
|
||||
vehicle = JSON.parse(e)
|
||||
year = vehicle[:years][:year]
|
||||
make = vehicle[:make][:name]
|
||||
|
||||
Reference in new issue
Block a user