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: fsr_form.rb
    path of file: ./repos/vets-api/modules/debts_api/lib/debts_api/v0
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module DebtsApi
 
    
    def enabled_feature_flags(user)
      begin
        enabled_flags = Flipper.features.select { |feature| feature.enabled?(user) }.map do |feature|
          feature.name.to_s
        end.sort
      rescue => e
        Rails.logger.error('Failed to source user flags', e.message)
        enabled_flags = []
      end

      enabled_flags
    end