summaryrefslogtreecommitdiff
path: root/users/app/models/user.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-17 17:48:39 +0100
committerAzul <azul@leap.se>2012-12-17 17:48:39 +0100
commitb90ce01890907d1c7f46f46bafcef416570a4c4b (patch)
treef8f7ac9560b37bba6272b0251f0be4d65e691314 /users/app/models/user.rb
parent7528695461f2c5725fe29787aa6bf703050a1a4a (diff)
enabled destroying email aliases - no ajax yet.
Diffstat (limited to 'users/app/models/user.rb')
-rw-r--r--users/app/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/app/models/user.rb b/users/app/models/user.rb
index 10f358d..d66b0e9 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -45,6 +45,7 @@ class User < CouchRest::Model::Base
view :by_login
view :by_created_at
view :by_email
+
view :by_email_alias,
:map => <<-EOJS
function(doc) {
@@ -56,6 +57,7 @@ class User < CouchRest::Model::Base
});
}
EOJS
+
view :by_email_or_alias,
:map => <<-EOJS
function(doc) {
@@ -70,6 +72,7 @@ class User < CouchRest::Model::Base
});
}
EOJS
+
end
class << self
@@ -127,6 +130,7 @@ class User < CouchRest::Model::Base
end
end
+
##
# Validation Functions
##