mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update vehicles_controller.rb
This commit is contained in:
1 parent
8156657eb2
commit
9c4ed3d9e1
1 file changed
+1
-1
@@ -103,7 +103,7 @@ class VehiclesController < ApplicationController
|
||||
|
||||
# returns a dynamic list of vehicles owned by a customer
|
||||
def update_vehicles
|
||||
@vehicles = Customer.find_by_id(params[:customer_id].to_i).vehicles
|
||||
@vehicles = Customer.find_by(customer_id: params[:customer_id].to_i).vehicles
|
||||
respond_to do |format|
|
||||
format.html { render(:text => "not implemented") }
|
||||
format.js
|
||||
|
||||
Reference in new issue
Block a user