Update vehicle.rb

This commit is contained in:
2016-05-12 11:46:51 -04:00
parent 3f352f1f19
commit 6605bd9467

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}"