Strips user email (#5834).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3873 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2010-07-25 09:50:41 +00:00
1 parent fd0623bf69
commit 66820dbed3
2 files changed
+10

No files matched your search

+4
View File
@@ -79,6 +79,10 @@ class User < Principal
super
end
def mail=(arg)
write_attribute(:mail, arg.to_s.strip)
end
def identity_url=(url)
if url.blank?
write_attribute(:identity_url, '')