mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Added filter_vehicles_by_customer method
This commit is contained in:
1 parent
0d5e5d679e
commit
2b90c953ba
1 file changed
+4
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user