Sha256: 248becf161bfc328e7ac86d926f69b4a28788ed6b4f85c0ee85c4e70b9f09fbc

Contents?: true

Size: 414 Bytes

Versions: 39

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module Rails
  module Command
    class MiddlewareCommand < Base # :nodoc:
      desc "middleware", "Print out your Rack middleware stack"
      def perform
        boot_application!

        Rails.configuration.middleware.each do |middleware|
          say "use #{middleware.inspect}"
        end
        say "run #{Rails.application.class.name}.routes"
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
railties-7.1.4 lib/rails/commands/middleware/middleware_command.rb
railties-7.2.1 lib/rails/commands/middleware/middleware_command.rb
railties-7.2.0 lib/rails/commands/middleware/middleware_command.rb
railties-7.2.0.rc1 lib/rails/commands/middleware/middleware_command.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/commands/middleware/middleware_command.rb
railties-7.2.0.beta3 lib/rails/commands/middleware/middleware_command.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/commands/middleware/middleware_command.rb
railties-7.2.0.beta2 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.3.4 lib/rails/commands/middleware/middleware_command.rb
railties-7.2.0.beta1 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.3.2 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.3.1 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.3 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.2 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.1 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.0 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.0.rc2 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.0.rc1 lib/rails/commands/middleware/middleware_command.rb
railties-7.1.0.beta1 lib/rails/commands/middleware/middleware_command.rb