[refs #178] Fix project create error with group owner
This commit is contained in:
parent
47399a957f
commit
1356ffa437
|
@ -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