mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54: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
|
||||
def decode_vin
|
||||
get_details
|
||||
if @details and self.vin?
|
||||
if @details
|
||||
begin
|
||||
self.year = @details['years'][0]['year']
|
||||
self.make = @details['make']['name']
|
||||
|
||||
Reference in New Issue
Block a user