Update vehicle.rb

This commit is contained in:
ricky authored and GitHub committed 2019-11-12 12:15:59 -05:00
1 parent f78c0338b4
commit 5df9d324bc
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ class Vehicle < ActiveRecord::Base
validates_presence_of :customer
validates :vin, uniqueness: true
before_save :decode_vin
#after_find :get_details
after_find :get_details
self.primary_key = :id