Update customers_controller.rb

This commit is contained in:
2017-01-29 22:26:53 -05:00
committed by GitHub
parent a268d10819
commit 82807cfede

View File

@@ -37,7 +37,7 @@ class CustomersController < ApplicationController
def autocomplete_customer_vehicles
customer = Customer.find_by_id(params[:term])
items = customer.vehicles if customer
render :json => json_for_autocomplete(items, options[:display_value] ||= method, options[:extra_data])
render :json => json_for_autocomplete(items)
end
# display a list of all customers