Update vehicle.rb

This commit is contained in:
2016-04-22 09:50:32 -04:00
parent a33a1eeb94
commit fbf074e3c3

View File

@@ -12,8 +12,8 @@ class Vehicle < ActiveRecord::Base
unloadable
belongs_to :qbo_customer
attr_accessible :year, :make, :model, :qbo_customer, :notes, :vin
validates_presence_of :year, :make, :model, :qbo_customer
attr_accessible :year, :make, :model, :qbo_customer_id, :notes, :vin
validates_presence_of :year, :make, :model, :qbo_customer_id
def to_s
return "#{year} #{make} #{model}"