mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Split the VIN
This commit is contained in:
1 parent
41a113dc59
commit
7782627286
1 file changed
+1
@@ -57,6 +57,7 @@ class VehiclesController < ApplicationController
|
||||
def show
|
||||
begin
|
||||
@vehicle = Vehicle.find_by_id(params[:id])
|
||||
@vin = @vehicle.vin.scan(/.{1,9}/) if @vehicle.vin
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user