mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Fixed logic
This commit is contained in:
1 parent
4adcbba840
commit
b3f491a60b
1 file changed
+3
-3
@@ -26,10 +26,10 @@ class Vehicle < ActiveRecord::Base
|
|||||||
|
|
||||||
# returns a human readable string
|
# returns a human readable string
|
||||||
def to_s
|
def to_s
|
||||||
if year.nil?
|
if year.nil? or manke.nil? or model.nil?
|
||||||
return "#{year} #{make} #{model}"
|
|
||||||
else
|
|
||||||
return "#{vin}"
|
return "#{vin}"
|
||||||
|
else
|
||||||
|
return "#{year} #{make} #{model}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user