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:
@@ -57,8 +57,8 @@ class Vehicle < ActiveRecord::Base
|
||||
if self.vin?
|
||||
begin
|
||||
@details = JSON.parse get_decoder.full(self.vin)
|
||||
rescue
|
||||
return nil
|
||||
rescue Exception => e
|
||||
errors.add(:vin, e.message)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user