do a full search by setting the full parameter to true.

This commit is contained in:
2018-03-27 09:38:44 -04:00
parent b78cd44cc9
commit 49858c45c9

View File

@@ -33,7 +33,7 @@ class CustomersController < ApplicationController
default_search_scope :names
autocomplete :customer, :name, :full => false, :extra_data => [:id]
autocomplete :customer, :name, :full => true, :extra_data => [:id]
def filter_vehicles_by_customer
@filtered_vehicles = Vehicle.all.where(customer_id: params[:selected_customer])