This commit is contained in:
Dmitriy Zaporozhets 2011-10-15 21:39:11 +03:00
parent 7b5799a979
commit ef2bf15204
28 changed files with 104 additions and 37 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