Update vehicle.rb

This commit is contained in:
2017-04-04 08:47:15 -04:00
committed by GitHub
parent baccb42455
commit 4adcbba840

View File

@@ -26,7 +26,7 @@ class Vehicle < ActiveRecord::Base
# returns a human readable string
def to_s
if year.nil? or make.nil? or model.nil?
if year.nil?
return "#{year} #{make} #{model}"
else
return "#{vin}"