Update vehicle.rb

This commit is contained in:
2016-08-01 19:34:28 -04:00
committed by GitHub
parent e201765f02
commit 38865bd062

View File

@@ -21,7 +21,7 @@ class Vehicle < ActiveRecord::Base
validates_presence_of :customer
validates :vin, uniqueness: true
validates :year, numericality: { only_integer: true }
#validates :year, numericality: { only_integer: true }
before_save :decode_vin
after_initialize :get_details