mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update vehicle.rb
This commit is contained in:
@@ -24,6 +24,8 @@ class Vehicle < ActiveRecord::Base
|
|||||||
before_save :decode_vin
|
before_save :decode_vin
|
||||||
after_initialize :get_details
|
after_initialize :get_details
|
||||||
|
|
||||||
|
self.primary_key = :id
|
||||||
|
|
||||||
# returns a human readable string
|
# returns a human readable string
|
||||||
def to_s
|
def to_s
|
||||||
return "#{self.customer.name} - #{self.year} #{self.make} #{self.model}"
|
return "#{self.customer.name} - #{self.year} #{self.make} #{self.model}"
|
||||||
|
|||||||
Reference in New Issue
Block a user