summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
Diffstat (limited to 'users/app')
-rw-r--r--users/app/models/user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index b531dfd..4fd0039 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -112,7 +112,7 @@ class User < CouchRest::Model::Base
APP_CONFIG['admins'].include? self.login
end
- def add_email(email)
+ def add_email_alias(email)
email = LocalEmail.new(email) unless email.is_a? Email
email_aliases << email
end
@@ -121,7 +121,7 @@ class User < CouchRest::Model::Base
# All the ui needs for now.
def email_aliases_attributes=(attrs)
if attrs && attrs.values.first
- add_email attrs.values.first
+ add_email_alias attrs.values.first
end
end