mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update vehicle.rb
This commit is contained in:
1 parent
757ddf87ac
commit
1af02ec3de
1 file changed
+1
-1
@@ -16,7 +16,7 @@ class Vehicle < ActiveRecord::Base
|
|||||||
attr_accessible :year, :make, :model, :customer_id, :notes, :vin
|
attr_accessible :year, :make, :model, :customer_id, :notes, :vin
|
||||||
validates_presence_of :customer_id
|
validates_presence_of :customer_id
|
||||||
validates :vin, uniqueness: true
|
validates :vin, uniqueness: true
|
||||||
validate :decode_vin
|
before_save :decode_vin
|
||||||
after_initialize :get_details
|
after_initialize :get_details
|
||||||
|
|
||||||
# returns a human readable string
|
# returns a human readable string
|
||||||
|
|||||||
Reference in new issue
Block a user