summaryrefslogtreecommitdiff
path: root/users/app/models/user.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-09-18 10:26:23 +0200
committerAzul <azul@leap.se>2013-09-18 10:27:19 +0200
commit3ca376a4070428c862c9db48cba25c3d307955ea (patch)
treecff922632b3ad5983ff07d1eb77648b6f5a8b84f /users/app/models/user.rb
parent22e6f781caec701a4d041e0ac183df4c955e89c2 (diff)
user.account shortcut to Account.new(user)
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 310eecd..a14fcb5 100644
--- a/users/app/models/user.rb
+++ b/users/app/models/user.rb
@@ -82,6 +82,10 @@ class User < CouchRest::Model::Base
identity.keys[:pgp]
end
+ def account
+ Account.new(self)
+ end
+
def identity
@identity ||= Identity.for(self)
end