Budget Investment controller has no update method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user