mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Rename Customer
This commit is contained in:
1 parent
11e215189b
commit
b5d42fcd7b
1 file changed
+3
-3
@@ -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