From 1356ffa43752be7a89cc43e11fb0449974991ef0 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Mon, 13 Feb 2012 14:23:20 +0400 Subject: [PATCH] [refs #178] Fix project create error with group owner --- app/models/group.rb | 1 + 1 file changed, 1 insertion(+) 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