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