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:
@@ -75,7 +75,7 @@ class Vehicle < ActiveRecord::Base
|
|||||||
val = val.to_s.gsub!(/[^[A-HJ-NPR-Za-hj-npr-z\d]{8}]/,'')
|
val = val.to_s.gsub!(/[^[A-HJ-NPR-Za-hj-npr-z\d]{8}]/,'')
|
||||||
|
|
||||||
# The to_s is in case you get nil/non-string
|
# The to_s is in case you get nil/non-string
|
||||||
write_attribute(:vin, val.upcase)
|
write_attribute(:vin, val.to_s.upcase)
|
||||||
end
|
end
|
||||||
|
|
||||||
# search for a vin
|
# search for a vin
|
||||||
|
|||||||
Reference in New Issue
Block a user