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:
@@ -17,7 +17,7 @@ class Vehicle < ActiveRecord::Base
|
|||||||
validates_presence_of :customer_id
|
validates_presence_of :customer_id
|
||||||
validates :vin, uniqueness: true
|
validates :vin, uniqueness: true
|
||||||
|
|
||||||
before_validation :decode_vin
|
validate :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