You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: investments_controller.rb
    path of file: ./repos/consuldemocracy/app/controllers/management/budgets
    
    the code of the file until where you have to start completion: class Management::Budgets::InvestmentsController < Management::BaseController
  include Translatable
  include ImageAttributes
  include DocumentAttributes
  include MapLocationAttributes
  include FeatureFlags
  feature_flag :budgets

  before_action :load_budget

  load_resource :budget
  load_resource :investment, through: :budget, class: "Budget::Investment"

  bef
    
    def allowed_params
      attributes = [:external_url, :heading_id, :tag_list, :organization_name, :location,
                    image_attributes: image_attributes,
                    documents_attributes: document_attributes,
                    map_location_attributes: map_location_attributes]

      [*attributes, translation_params(Budget::Investment)]
    end

    def only_verified_users
      check_verified_user t("management.budget_investments.alert.unverified_user")
    end

    def load_budget
      @budget = Budget.find_by_slug_or_id! params[:budget_id]
    end
end