From 06050bd1395bf4db60367b39ddda1953017526fd Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 31 Mar 2017 16:23:42 -0400 Subject: [PATCH] Removed unused method update_vehicles --- app/controllers/vehicles_controller.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/controllers/vehicles_controller.rb b/app/controllers/vehicles_controller.rb index 9b52091..105159b 100644 --- a/app/controllers/vehicles_controller.rb +++ b/app/controllers/vehicles_controller.rb @@ -102,15 +102,6 @@ class VehiclesController < ApplicationController end end - # returns a dynamic list of vehicles owned by a customer - def update_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 - end - end - private def only_one_non_zero?( array )