Update vehicle.rb

This commit is contained in:
2016-04-29 07:14:34 -04:00
parent 5b87733b54
commit 43876fb61d

View File

@@ -52,6 +52,7 @@ class Vehicle < ActiveRecord::Base
# init method to pull JSON details from Edmunds
def get_details
# TODO handle ERRORS
if self.vin?
@details = JSON.parse get_decoder.full(self.vin)
end