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:
@@ -97,7 +97,7 @@ class Vehicle < ActiveRecord::Base
|
|||||||
# decodes a vin and updates self
|
# decodes a vin and updates self
|
||||||
def decode_vin
|
def decode_vin
|
||||||
get_details
|
get_details
|
||||||
if @details and self.vin?
|
if @details
|
||||||
begin
|
begin
|
||||||
self.year = @details['years'][0]['year']
|
self.year = @details['years'][0]['year']
|
||||||
self.make = @details['make']['name']
|
self.make = @details['make']['name']
|
||||||
|
|||||||
Reference in New Issue
Block a user