diff options
| author | Drew <bowmande@gmail.com> | 2011-11-18 01:32:22 -0500 |
|---|---|---|
| committer | Drew <bowmande@gmail.com> | 2011-11-18 01:32:22 -0500 |
| commit | 15016ae68dd2e59ce1b12b0be6e9870d16219569 (patch) | |
| tree | cf86fa704ad87fe90db951449536c4362e15f8d0 /app/models/user.rb | |
| parent | 26bdeb2107d7d55aa89132d9c060421bd377c9f0 (diff) | |
| download | gitlab-ce-15016ae68dd2e59ce1b12b0be6e9870d16219569.tar.gz | |
resolved issue 244 and updated test
Diffstat (limited to 'app/models/user.rb')
| -rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index f6c271467dd..712c7aecb26 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -30,7 +30,7 @@ class User < ActiveRecord::Base scope :not_in_project, lambda { |project| where("id not in (:ids)", :ids => project.users.map(&:id) ) } def identifier - email.gsub "@", "_" + email.gsub /[@.]/, "_" end def is_admin? |
