Added filter_vehicles_by_customer method

This commit is contained in:
2017-03-22 10:29:04 -04:00
committed by GitHub
parent 0d5e5d679e
commit 2b90c953ba

View File

@@ -144,6 +144,10 @@ class CustomersController < ApplicationController
end
end
def filter_vehicles_by_customer
@filtered_vehicles = Customer.find(customer_id: params[:selected_customer]).vehicles
end
private
def only_one_non_zero?( array )