aboutsummaryrefslogblamecommitdiffstats
path: root/railties/test/fixtures/plugins/engines/engine/app/metal/engine_metal.rb
blob: d67a127ca7828c6b8f6b359035481165759ee8a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                              
class EngineMetal
  def self.call(env)
    if env["PATH_INFO"] =~ /^\/metal/
      [200, {"Content-Type" => "text/html"}, ["Engine metal"]]
    else
      [404, {"Content-Type" => "text/html"}, ["Not Found"]]
    end
  end
end