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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 3ad69c7..fcb211e 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -6,7 +6,7 @@ class User < CouchRest::Model::Base
property :email, String, :accessible => true
property :email_forward, String, :accessible => true
- property :email_aliases, [EmailAlias]
+ property :email_aliases, [Email]
validates :login, :password_salt, :password_verifier,
:presence => true
@@ -77,7 +77,7 @@ class User < CouchRest::Model::Base
def email_aliases_attributes=(attrs)
if attrs
- email_alias = EmailAlias.new(attrs.values.first)
+ email_alias = Email.new(attrs.values.first)
email_aliases << email_alias
end
end