summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-02-15 16:38:27 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-02-15 16:38:27 -0500
commitae13389b0b8654abcffead659788580e8c1f1a15 (patch)
treed13f0a758ccd24c888018550eeca17b5398e32d7
parent012c75d1b0a24aff3c31ca5b5d475e06d5f77428 (diff)
downloadgitlab-ce-rs-git_not_found.tar.gz
Provide explicit html format when rendering git_not_found pagers-git_not_found
Prior, if the request format was, for example, .zip, we'd get an `ActionView::MissingTemplate` error.
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 7afe3c0c471..2c329b60a19 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -164,7 +164,7 @@ class ApplicationController < ActionController::Base
end
def git_not_found!
- render "errors/git_not_found", layout: "errors", status: 404
+ render "errors/git_not_found.html", layout: "errors", status: 404
end
def method_missing(method_sym, *arguments, &block)