mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Rename Customer
This commit is contained in:
@@ -11,10 +11,10 @@
|
|||||||
class Vehicle < ActiveRecord::Base
|
class Vehicle < ActiveRecord::Base
|
||||||
|
|
||||||
unloadable
|
unloadable
|
||||||
belongs_to :qbo_customer
|
belongs_to :customer
|
||||||
|
|
||||||
attr_accessible :year, :make, :model, :qbo_customer_id, :notes, :vin
|
attr_accessible :year, :make, :model, :customer_id, :notes, :vin
|
||||||
validates_presence_of :year, :make, :model, :qbo_customer_id
|
validates_presence_of :year, :make, :model, :customer_id
|
||||||
|
|
||||||
before_validation :decode_vin
|
before_validation :decode_vin
|
||||||
after_initialize :get_details
|
after_initialize :get_details
|
||||||
|
|||||||
Reference in New Issue
Block a user