mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update vehicle.rb
This commit is contained in:
1 parent
e201765f02
commit
38865bd062
1 file changed
+1
-1
@@ -21,7 +21,7 @@ class Vehicle < ActiveRecord::Base
|
|||||||
|
|
||||||
validates_presence_of :customer
|
validates_presence_of :customer
|
||||||
validates :vin, uniqueness: true
|
validates :vin, uniqueness: true
|
||||||
validates :year, numericality: { only_integer: true }
|
#validates :year, numericality: { only_integer: true }
|
||||||
|
|
||||||
before_save :decode_vin
|
before_save :decode_vin
|
||||||
after_initialize :get_details
|
after_initialize :get_details
|
||||||
|
|||||||
Reference in new issue
Block a user