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: middleware.rb
    path of file: ./repos/flipper/lib/flipper/ui
    
    the code of the file until where you have to start completion: require 'rack'
require 'flipper/ui/action_collection'

# Require all actions automatically.
Pathname(__FILE__).dirname.join('actions').each_child(false) do |name|
  require "flipper/ui/actions/#{name}"
end

module Flipper
  module UI
    class Middleware
      def initialize(app, options = {})
        @app = app
        @env_key = options.fe
    
      def initialize(app, options = {})
        @app = app
        @env_key = options.fetch(:env_key, 'flipper')
        @flipper = options.fetch(:flipper) { Flipper }

        @action_collection = ActionCollection.new

        # UI
        @action_collection.add UI::Actions::AddFeature
        @action_collection.add UI::Actions::ActorsGate
        @action_collection.add UI::Actions::GroupsGate
        @action_collection.add UI::Actions::BooleanGate
        @action_collection.add UI::Actions::PercentageOfTimeGate
        @action_collection.add UI::Actions::PercentageOfActorsGate
        @action_collection.add UI::Actions::Feature
        @action_collection.add UI::Actions::Features
        @action_collection.add UI::Actions::Export
        @action_collection.add UI::Actions::Import
        @action_collection.add UI::Actions::Settings

        # Static Assets/Files
        @action_collection.add UI::Actions::File

        # Catch all redirect to features
        @action_collection.add UI::Actions::Home
      end