From 6e9191dc7c40d3c25a3be103a250e58307a414bf Mon Sep 17 00:00:00 2001 From: Bertocq Date: Sat, 3 Feb 2018 01:19:25 +0100 Subject: [PATCH] Budget Investment controller has no update method --- app/controllers/budgets/investments_controller.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/controllers/budgets/investments_controller.rb b/app/controllers/budgets/investments_controller.rb index 4a2b2d3d9..2913ea260 100644 --- a/app/controllers/budgets/investments_controller.rb +++ b/app/controllers/budgets/investments_controller.rb @@ -15,7 +15,6 @@ module Budgets before_action :set_random_seed, only: :index before_action :load_categories, only: [:index, :new, :create] before_action :set_default_budget_filter, only: :index - before_action :destroy_map_location_association, only: :update feature_flag :budgets @@ -142,13 +141,6 @@ module Budgets end end - def destroy_map_location_association - map_location = params[:budget_investment][:map_location_attributes] - if map_location && (map_location[:longitude] && map_location[:latitude]).blank? && !map_location[:id].blank? - MapLocation.destroy(map_location[:id]) - end - end - end end