Update vehicle.rb

This commit is contained in:
2016-04-27 14:14:43 -04:00
parent 14d10bd0e6
commit d6a75f8ed0

View File

@@ -30,7 +30,7 @@ class Vehicle < ActiveRecord::Base
private
def get_details
if not self.vin.nil?
if self.vin?
@details = JSON.parse get_decoder.full(self.vin)
end
end