issue #124
This commit is contained in:
parent
4e063deaa9
commit
a9d224d36d
3 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue