resolved issue 244 and updated test
This commit is contained in:
parent
26bdeb2107
commit
15016ae68d
2 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue