[refs #178] Fix project create error with group owner

This commit is contained in:
konstantin.grabar 2012-02-13 14:23:20 +04:00
parent 47399a957f
commit 1356ffa437
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 attr_readonly :uname, :own_projects_count
delegate :ssh_key, :to => :owner delegate :ssh_key, :to => :owner
delegate :email, :to => :owner
after_create :add_owner_to_members after_create :add_owner_to_members
after_initialize lambda {|r| r.name ||= r.uname } # default after_initialize lambda {|r| r.name ||= r.uname } # default