Budget Investment controller has no update method

This commit is contained in:
Bertocq
2018-02-03 01:19:25 +01:00
parent 04de1e19f5
commit 6e9191dc7c

View File

@@ -15,7 +15,6 @@ module Budgets
before_action :set_random_seed, only: :index before_action :set_random_seed, only: :index
before_action :load_categories, only: [:index, :new, :create] before_action :load_categories, only: [:index, :new, :create]
before_action :set_default_budget_filter, only: :index before_action :set_default_budget_filter, only: :index
before_action :destroy_map_location_association, only: :update
feature_flag :budgets feature_flag :budgets
@@ -142,13 +141,6 @@ module Budgets
end end
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
end end