Update vehicle.rb

This commit is contained in:
ricky committed 2016-05-12 11:46:51 -04:00
1 parent 3f352f1f19
commit 6605bd9467
1 file changed
+2
+2
View File
@@ -24,6 +24,8 @@ class Vehicle < ActiveRecord::Base
before_save :decode_vin
after_initialize :get_details
self.primary_key = :id
# returns a human readable string
def to_s
return "#{self.customer.name} - #{self.year} #{self.make} #{self.model}"