Permalink
Browse files

Include cascade header in metal template

  • Loading branch information...
josh committed Jan 22, 2010
1 parent 658f9e7 commit 284fd2568de44ba913ff3accc439c5e6e22ca076
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/generators/rails/metal/templates/metal.rb
@@ -6,7 +6,7 @@ def self.call(env)
if env["PATH_INFO"] =~ /^\/<%= file_name %>/
[200, {"Content-Type" => "text/html"}, ["Hello, World!"]]
else
- [404, {"Content-Type" => "text/html"}, ["Not Found"]]
+ [404, {"Content-Type" => "text/html", "X-Cascade" => "pass"}, ["Not Found"]]
end
end
end

0 comments on commit 284fd25

Please sign in to comment.