This commit is contained in:
gitlabhq 2011-10-15 18:51:58 +03:00
parent 4e063deaa9
commit a9d224d36d
3 changed files with 8 additions and 1 deletions

View file

@ -61,4 +61,8 @@ class ApplicationController < ActionController::Base
def render_404
render :file => File.join(Rails.root, "public", "404"), :layout => false, :status => "404"
end
def require_non_empty_project
redirect_to @project unless @project.repo_exists?
end
end