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: create_with_remote_files_ordered_members_actor.rb
    path of file: ./repos/hyrax/app/actors/hyrax/actors
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
module Hyrax
  module Actors
    ##
    # When adding member {FileSetBehavior}s to a {WorkBehavior}, {Hyrax} saves
    # and reloads the work for each new member FileSet. This can significantly
    # slow down ingest for Works with many member FileSets. The saving and
    # reloading happens in {FileSe
    
      def attach_files(env, remote_files)
        @ordered_members = env.curation_concern.ordered_members.to_a
        ingest_remote_files_service_class.new(user: env.user,
                                              curation_concern: env.curation_concern,
                                              remote_files: remote_files,
                                              ordered_members: @ordered_members,
                                              ordered: true,
                                              file_set_actor_class: file_set_actor_class).attach!
      end