Update vehicle.rb

This commit is contained in:
ricky committed 2016-05-06 06:49:57 -04:00
1 parent 2210b11a57
commit dd280ddf51
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ class Vehicle < ActiveRecord::Base
validates_presence_of :customer_id
validates :vin, uniqueness: true
before_validation :decode_vin
validate :decode_vin
after_initialize :get_details
# returns a human readable string