mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
Update vehicles_controller.rb
This commit is contained in:
1 parent
a3b5ad0cb0
commit
fec59a7495
1 file changed
+8
@@ -107,5 +107,13 @@ class VehiclesController < ApplicationController
|
||||
end
|
||||
found_non_zero
|
||||
end
|
||||
|
||||
# returns a dynamic list of vehicles owned by a customer
|
||||
def update_vehicles
|
||||
@vehicles = Customer.find_by_id(params[:customer].to_i).vehicles
|
||||
respond_to do |format|
|
||||
format.js
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user