summaryrefslogtreecommitdiff
path: root/users/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/models/user.rb')
-rw-r--r--users/app/models/user.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 81d5262..3ad69c7 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -75,6 +75,13 @@ class User < CouchRest::Model::Base
APP_CONFIG['admins'].include? self.login
end
+ def email_aliases_attributes=(attrs)
+ if attrs
+ email_alias = EmailAlias.new(attrs.values.first)
+ email_aliases << email_alias
+ end
+ end
+
protected
def password
password_verifier