aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/rack/metal.rb
blob: 8dfbedad90cf688a9b4349f74c7ddc0f05d03ca2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Rails
  module Rack
    class Metal
      NotFound = lambda { |env|
        [404, {"Content-Type" => "text/html"}, "Not Found"]
      }

      def self.call(env)
        new(NotFound).call(env)
      end

      def initialize(app)
        @app = app
      end

      def call(env)
        @app.call(env)
      end
    end
  end
end