Validates presence of User#name

The 2 reasons are :
- creation of user fail if name is empty : in after_save, it tries to create a
namespace with namespace.name = user.name and namespece validates presence
Namespace#name
- in the web app links to team members are broken with empty User#name because
they are of the form <a href'...'> user.name </a>
This commit is contained in:
Cyril 2012-12-12 17:53:43 +01:00
parent 273c0d2aa3
commit 63d9373aa8
3 changed files with 2 additions and 3 deletions

View file

@ -101,8 +101,6 @@ module Gitlab
key = current_user.keys.find params[:id]
key.delete
end
end
end
end