Provide explicit html format when rendering git_not_found page
Prior, if the request format was, for example, .zip, we'd get an `ActionView::MissingTemplate` error.
This commit is contained in:
parent
012c75d1b0
commit
ae13389b0b
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def git_not_found!
|
def git_not_found!
|
||||||
render "errors/git_not_found", layout: "errors", status: 404
|
render "errors/git_not_found.html", layout: "errors", status: 404
|
||||||
end
|
end
|
||||||
|
|
||||||
def method_missing(method_sym, *arguments, &block)
|
def method_missing(method_sym, *arguments, &block)
|
||||||
|
|
Loading…
Reference in a new issue