default_branch for project & fixed project destroy

This commit is contained in:
Dmitriy Zaporozhets 2011-12-07 23:56:57 +02:00
parent 2552a877df
commit d68ec5e0fb
7 changed files with 18 additions and 6 deletions

View file

@ -158,7 +158,7 @@ class Project < ActiveRecord::Base
end
def root_ref
"master"
default_branch || "master"
end
def public?