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