summaryrefslogtreecommitdiff
path: root/users/app/models/email.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-10 11:00:24 +0100
committerAzul <azul@leap.se>2012-12-10 11:00:24 +0100
commit28b21959f39b0e28c450bba54b8696632a0187fa (patch)
tree7f13cad03190324ca0d242d3aee74bfb4efb00fa /users/app/models/email.rb
parente4c7f2fb8fa2833037508f1b88f802944855fd77 (diff)
created generic Email class and use it with EmailAliases
Diffstat (limited to 'users/app/models/email.rb')
-rw-r--r--users/app/models/email.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/app/models/email.rb b/users/app/models/email.rb
new file mode 100644
index 0000000..0988d9f
--- /dev/null
+++ b/users/app/models/email.rb
@@ -0,0 +1,9 @@
+class Email
+ include CouchRest::Model::Embeddable
+
+ property :email, String
+
+ def to_s
+ email
+ end
+end