Update vehicle.rb

This commit is contained in:
2016-05-06 06:45:55 -04:00
parent 70cd5a5cdd
commit 2210b11a57

View File

@@ -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