mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update vehicle.rb
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
|
||||
class Vehicle < ActiveRecord::Base
|
||||
|
||||
require 'edmunds/vin.rb'
|
||||
|
||||
unloadable
|
||||
belongs_to :qbo_customer
|
||||
|
||||
@@ -28,7 +26,7 @@ class Vehicle < ActiveRecord::Base
|
||||
|
||||
def decode_vin
|
||||
if vin?
|
||||
e = Edmunds::Vin.full(vin)
|
||||
e = Edmunds::VIN.full(vin)
|
||||
vehicle = JSON.parse(e)
|
||||
year = vehicle[:years][:year]
|
||||
make = vehicle[:make][:name]
|
||||
|
||||
Reference in New Issue
Block a user