User profile restyle. Feed(Atom) links for commits & issues

This commit is contained in:
Dmitriy Zaporozhets 2011-12-19 23:32:59 +02:00
parent 54fb0f8589
commit a2d3b21189
16 changed files with 147 additions and 92 deletions

View file

@ -46,6 +46,10 @@ class User < ActiveRecord::Base
admin
end
def require_ssh_key?
keys.count == 0
end
def can_create_project?
projects_limit >= my_own_projects.count
end