refactoring
This commit is contained in:
parent
f294b8d4c3
commit
af08ed6b66
16 changed files with 96 additions and 79 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue