Merge pull request #181 from warpc/178-project_and_group_create_error

[Fix #178] Fix project create error with group owner
This commit is contained in:
Vladimir Sharshov 2012-02-13 02:26:54 -08:00
commit 2866014a6f
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class Group < ActiveRecord::Base
attr_readonly :uname, :own_projects_count
delegate :ssh_key, :to => :owner
delegate :email, :to => :owner
after_create :add_owner_to_members
after_initialize lambda {|r| r.name ||= r.uname } # default