diff --git a/app/models/group.rb b/app/models/group.rb index bc89373d4..c68147305 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -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