refactoring

This commit is contained in:
gitlabhq 2011-11-16 08:38:53 +03:00
parent f294b8d4c3
commit af08ed6b66
16 changed files with 96 additions and 79 deletions

View file

@ -121,6 +121,10 @@ class Project < ActiveRecord::Base
@admins ||=users_projects.includes(:user).where(:admin => true).map(&:user)
end
def root_ref
"master"
end
def public?
!private_flag
end