From 3ca376a4070428c862c9db48cba25c3d307955ea Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 18 Sep 2013 10:26:23 +0200 Subject: user.account shortcut to Account.new(user) --- users/app/models/user.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'users/app/models') 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 -- cgit v1.2.3