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:
commit
2866014a6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue